Expand description
A set of utilities to deal with asynchronous events. This module offers a synchronized event queue and timed events.
Structs§
- Event
Receiver - A generic and synchronized queue where the user can send and receive events.
See
EventSenderto see how send events. This entity can be used as an utility for thecrate::networkmodule redirecting the network events to process them later from here. - Event
Sender - Struct used to send events into a
EventReceiver. This type can only be generated by the receiverEventReceiver. - TimerId
- An ID that represents a timer scheduled. It can be used to cancel the event.
Functions§
- split
- As a shortcut, it returns the sender and receiver queue as a tuple.