transwarp
|
The releaser will release a task's future when the task's after_satisfied
event was received which happens when all children received the task's result. The releaser should be used in cases where the task's result is only needed for consumption by its children and can then be discarded.
More...
#include <transwarp.h>
Public Member Functions | |
releaser (std::shared_ptr< transwarp::executor > executor) | |
The executor gives control over where a task's future is released. | |
releaser (const releaser &)=delete | |
releaser & | operator= (const releaser &)=delete |
releaser (releaser &&)=delete | |
releaser & | operator= (releaser &&)=delete |
void | handle_event (const transwarp::event_type event, transwarp::itask &task) override |
This may be called from arbitrary threads depending on the event type (see transwarp::event_type). The implementer needs to ensure that this never throws exceptions. | |
The releaser will release a task's future when the task's after_satisfied
event was received which happens when all children received the task's result. The releaser should be used in cases where the task's result is only needed for consumption by its children and can then be discarded.