boost::capy::any_executor::dispatch
Dispatches a coroutine handle through the wrapped executor.
Synopsis
Declared in <boost/capy/ex/any_executor.hpp>
std::coroutine_handle
dispatch(std::coroutine_handle h) const;
Description
Returns a handle for symmetric transfer. If running in the executor's thread, returns h. Otherwise, posts the coroutine for later execution and returns std::noop_coroutine().
Preconditions
-
This instance holds a valid executor.
Created with MrDocs