nebula::exec::task::TimerManager
class nebula::exec::task::TimerManager
Manager class for all Timer Instances.
Members
public void
scheduleTask
(
Task
& task, std::chrono::nanoseconds duration,
TimerPolicy
& policy)
Schedule a timer task for execution after specified duration and using specified policy.
- Parameters
task
Task implementationduration
duration in nspolicy
Timer backend policy to be used
public inline virtual
~TimerManager
()
public inline static std::shared_ptr<
TimerManager
>
getInstance
()
Get the Manager Instance.
- Returns
std::shared_ptr<TimerManager>
manager instance