A timer from App::run_every() or App::run_after().
More...
#include <Timer.hpp>
|
| | TimerHandle ()=default |
| |
| void | cancel () |
| | Stops the timer: no further runs start (one already running finishes).
|
| |
| bool | active () const |
| | True until cancelled, or until a run_after() timer has run.
|
| |
|
| | TimerHandle (std::shared_ptr< detail::TimerState > state) |
| |
|
| std::shared_ptr< detail::TimerState > | state_ |
| |
A timer from App::run_every() or App::run_after().
Copies refer to the same timer. Dropping every copy does not cancel it; call cancel(). A default-constructed handle refers to no timer.
◆ TimerHandle() [1/2]
| orbit::server::TimerHandle::TimerHandle |
( |
| ) |
|
|
default |
◆ TimerHandle() [2/2]
| orbit::server::TimerHandle::TimerHandle |
( |
std::shared_ptr< detail::TimerState > |
state | ) |
|
|
inlineexplicitprivate |
◆ active()
| bool orbit::server::TimerHandle::active |
( |
| ) |
const |
True until cancelled, or until a run_after() timer has run.
◆ cancel()
| void orbit::server::TimerHandle::cancel |
( |
| ) |
|
Stops the timer: no further runs start (one already running finishes).
◆ Scheduler
◆ state_
| std::shared_ptr<detail::TimerState> orbit::server::TimerHandle::state_ |
|
private |
The documentation for this class was generated from the following file: