Skip to main content

Module event_queue

Module event_queue 

Source
Expand description

A queue of events that producers push and one owner drains.

Producers on any thread push events. The owner takes them all at once, in the order they were pushed, when it’s ready to handle them. An optional waker tells the owner that the queue has events again.

Structs§

EventQueue
A queue of events. Clones push to and take from the same queue.

Type Aliases§

Waker
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.