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