|
Lightweight 0.20260617.0
|
#include <Executor.hpp>
Public Member Functions | |
| IResumeScheduler (IResumeScheduler const &)=delete | |
| IResumeScheduler & | operator= (IResumeScheduler const &)=delete |
| IResumeScheduler (IResumeScheduler &&)=delete | |
| IResumeScheduler & | operator= (IResumeScheduler &&)=delete |
| virtual void | Resume (std::coroutine_handle<> handle)=0 |
Interface for scheduling the resumption of a suspended coroutine.
Kept separate from IExecutor::Post so resumption can be expressed as a bare coroutine handle, which lets implementations avoid wrapping every resume in a Work allocation on hot paths.
Definition at line 42 of file Executor.hpp.
|
pure virtual |
Schedules handle to be resumed. Thread-safe.
| handle | The coroutine to resume. |
Implemented in Lightweight::Async::InlineExecutor, Lightweight::Async::ManualExecutor, Lightweight::Async::StrandExecutor, and Lightweight::Async::ThreadPoolExecutor.