|
ecor
|
Owns a task<void, CFG> that restarts automatically, it is provided with a factory to create new task instances, and a context that is passed to the factory on each run.
More...
#include <ecor.hpp>
Public Types | |
| using | base = _task_holder_base< CFG > |
Public Member Functions | |
| task_holder (Ctx &ctx, Factory factory) | |
Owns a task<void, CFG> that restarts automatically, it is provided with a factory to create new task instances, and a context that is passed to the factory on each run.
Restart policy:
set_value, set_error, or set_stopped from the inner task.stop() has been called AND the next completion arrives (regardless of which signal it is).Template parameters:
CFG — task configuration, default task_default_cfgCtx — task context type satisfying task_context, default task_ctxFactory — callable (Ctx&) -> task<void, CFG>; deduced via CTADPrecondition: must not be destructed before the sender returned by stop() completes.