uvco 0.1
|
Non-movable, non-copyable: because the awaiter is called by a callback. More...
Public Member Functions | |
TickerImpl (const TickerImpl &)=delete | |
TickerImpl (TickerImpl &&)=default | |
TickerImpl & | operator= (const TickerImpl &)=delete |
TickerImpl & | operator= (TickerImpl &&)=default |
TickerImpl (std::unique_ptr< TimerAwaiter > awaiter, uint64_t max) | |
~TickerImpl () override=default | |
MultiPromise< uint64_t > | ticker () override |
Promise< void > | close () override |
Immediately stop the ticker. | |
Public Member Functions inherited from uvco::Ticker | |
Ticker ()=default | |
virtual | ~Ticker ()=default |
Private Attributes | |
std::unique_ptr< TimerAwaiter > | awaiter_ |
uint64_t | count_max_ |
bool | stopped_ = false |
bool | running_ = false |
Non-movable, non-copyable: because the awaiter is called by a callback.
|
delete |
|
default |
|
inline |
|
overridedefault |
|
overridevirtual |
Immediately stop the ticker.
Implements uvco::Ticker.
|
delete |
|
default |
|
overridevirtual |
A promise generating successive integers. If a count was given upon creation, the last tick after reaching 0 will yield std::nullopt.
Implements uvco::Ticker.
|
private |
|
private |
|
private |
|
private |