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