MCPcopy Create free account
hub / github.com/AimRT/AimRT / Timer

Method Timer

src/interface/aimrt_module_cpp_interface/executor/timer.h:57–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55class Timer : public TimerBase, public std::enable_shared_from_this<Timer<TaskType>> {
56 public:
57 Timer(ExecutorRef executor, std::chrono::nanoseconds period, TaskType&& task)
58 : TimerBase(executor, period), task_(std::forward<TaskType>(task)) {}
59
60 ~Timer() override { Cancel(); }
61

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected