Simple - resume_on()#

You can call co_await tmc::resume_on(executor); to switch the current task to another executor.

It supports these Awaitable Customizations: with_priority().

API Reference#

inline aw_resume_on tmc::resume_on(tmc::ex_any *Executor)#

Returns an awaitable that moves this task onto the requested executor. If this task is already running on the requested executor, the co_await will do nothing.

template<typename Exec>
inline aw_resume_on tmc::resume_on(Exec &Executor)#

Returns an awaitable that moves this task onto the requested executor. If this task is already running on the requested executor, the co_await will do nothing.

template<typename Exec>
inline aw_resume_on tmc::resume_on(Exec *Executor)#

Returns an awaitable that moves this task onto the requested executor. If this task is already running on the requested executor, the co_await will do nothing.