Type Alias email::thread_pool::ThreadPoolTask

source ·
pub type ThreadPoolTask<C> = Box<dyn FnOnce(Arc<C>) -> Pin<Box<dyn Future<Output = ()> + Send>> + Send + Sync>;
Expand description

The thread pool task.

Aliased Type§

struct ThreadPoolTask<C>(Unique<dyn FnOnce(Arc<C>) -> Pin<Box<dyn Future<Output = ()> + Send>> + Send + Sync>, Global);

Fields§

§0: Unique<dyn FnOnce(Arc<C>) -> Pin<Box<dyn Future<Output = ()> + Send>> + Send + Sync>§1: Global