class
async_contextcontext for running async functions
Contents
The async_context could be bound to io objects, often as their first argument to static construct functions. Then if async io operations got completed, the callbacks would get invoked inside run() of the bound context.
Currently, only single-threaded context run() invocation is supported, however, calling its functions from other thread or submitting io operations is supported.
Constructors, destructors, conversion operators
- async_context() noexcept
- constructor
Public functions
Function documentation
ark:: async_context:: async_context() noexcept
constructor
the default constructed async_context is in an unusable state, you'll have to call init() before doing anything