boost::capy::strand::dispatch
Dispatch a coroutine through the strand.
Synopsis
Declared in <boost/capy/ex/strand.hpp>
std::coroutine_handle
dispatch(std::coroutine_handle h) const;
Description
Returns a handle for symmetric transfer. If the calling thread is already executing within this strand, returns h. Otherwise, the coroutine is queued and std::noop_coroutine() is returned.
Ordering
Callers requiring strict FIFO ordering should use post() instead, which always queues the coroutine.
Parameters
| Name | Description |
|---|---|
h |
The coroutine handle to dispatch. |
Created with MrDocs