Expand description
This module implements conversion from callbacks to futures for callbacks that are called only once.
Structs
- Register of oneshot callbacks into an event, where the callback is asyncrhonous (waiting for the callback to complete is also asynchronous).
- A handle to a oneshot callback registered in an event.
- Register of oneshot callbacks into an event, where the callback is syncrhonous (though waiting for the callback to complete is still asynchronous).
Type Aliases
- The type of asynchronous, oneshot callback handlers (i.e. the handler that calls callbacks): a boxed function that returns a boxed future, i.e. a wrapper over the actual callback.
- The type of futures used in asynchronous, oneshot callback handlers (i.e. the handler that calls callbacks): a boxed future.
- The type of synchronous, oneshot callback handlers (i.e. the handler that calls callbacks): a boxed function, i.e. a wrapper over the actual callback.