|
| template<std::invocable FnType> |
| | RepeatingOperation (auto &executor, std::chrono::steady_clock::duration interval, FnType &&fn) |
| | Construct a new Repeating Operation object.
|
|
| RepeatingOperation (RepeatingOperation const &)=delete |
|
RepeatingOperation & | operator= (RepeatingOperation const &)=delete |
|
| RepeatingOperation (RepeatingOperation &&)=default |
|
RepeatingOperation & | operator= (RepeatingOperation &&)=default |
| void | abort () noexcept |
| | Aborts the operation and the repeating timer.
|
| void | invoke () |
| | Force-invoke the operation.
|
| | MoveTracker (MoveTracker &&other) |
| | Move constructor sets the moved-from state on other and resets the state on this.
|
| MoveTracker & | operator= (MoveTracker &&other) |
| | Move operator sets the moved-from state on other and resets the state on this.
|
|
| MoveTracker (MoveTracker const &)=default |
|
MoveTracker & | operator= (MoveTracker const &)=default |
template<typename CtxType>
class util::async::RepeatingOperation< CtxType >
The future side of async operations that automatically repeat until aborted.
- Note
- The current implementation requires the user provided function to return void and to take no arguments. There is also no mechanism to request the repeating task to stop from inside of the user provided block of code.
- Template Parameters
-
| CtxType | The type of the execution context |