[−][src]Trait amadeus::prelude::_
Required methods
fn spawn<F, T>(
&self,
work: F
) -> Pin<Box<dyn Future<Output = Result<T, Box<dyn Error + 'static + Send>>> + 'static + Send>> where
F: FnOnce() -> T + 'static,
T: Send + 'static,
&self,
work: F
) -> Pin<Box<dyn Future<Output = Result<T, Box<dyn Error + 'static + Send>>> + 'static + Send>> where
F: FnOnce() -> T + 'static,
T: Send + 'static,
Implementations on Foreign Types
impl<'_, P> LocalPool for &'_ P where
P: LocalPool + ?Sized,
[src]
P: LocalPool + ?Sized,
fn spawn<F, T>(
&self,
work: F
) -> Pin<Box<dyn Future<Output = Result<T, Box<dyn Error + 'static + Send>>> + 'static + Send>> where
F: FnOnce() -> T + 'static,
T: Send + 'static,
[src]
&self,
work: F
) -> Pin<Box<dyn Future<Output = Result<T, Box<dyn Error + 'static + Send>>> + 'static + Send>> where
F: FnOnce() -> T + 'static,
T: Send + 'static,