Asynchronous context for functions running on a Dispatcher.
Context objects are provided when a task is run by a Dispatcher. The Context& is passed to Task::Pend, and can be passed to futures, other tasks, or other async operations. Context's primary purpose is to allow async code to store wakers.
Public Member Functions | |
| Context (const Context &)=delete | |
| Context (Context &&)=delete | |
| Context & | operator= (const Context &)=delete |
| Context & | operator= (Context &&)=delete |
| void | ReEnqueue () |
| PendingType | Unschedule () |
Friends | |
| class | Task |