Skip to main content

BoxedTask

Type Alias BoxedTask 

Source
pub type BoxedTask = Box<dyn FnOnce() + Send + 'static>;
Expand description

Type-erased task function.

A boxed closure that can be executed once. Tasks must be Send to allow scheduling from any thread.

Aliased Typeยง

pub struct BoxedTask(/* private fields */);