Skip to main content

Waker

Type Alias Waker 

Source
pub type Waker = Arc<dyn Fn() + Send + Sync>;
Expand description

Tells the owner of a queue that the queue has events to take. It runs on the thread that pushed the event, so it must not take the events itself there: it schedules the owner to do it, as by posting to its Queue.

Aliased Typeยง

pub struct Waker { /* private fields */ }