Skip to main content

TaskFn

Type Alias TaskFn 

Source
pub type TaskFn<A, T> = Arc<Box<dyn Send + Sync + Fn(A, Receiver<()>) -> FnReturn<T> + 'static>>;
Expand description

Boxed async closure executed by a Task, receiving the task argument and a termination Receiver and returning the task’s future via FnReturn.

Aliased Type§

pub struct TaskFn<A, T> { /* private fields */ }