Lely core libraries 2.3.4
|
A wait operation suitable for use with an I/O timer. More...
#include <timer.hpp>
Public Member Functions | |
template<class F > | |
TimerWait (ev_exec_t *exec, F &&f) | |
Constructs a wait operation with a completion task. | |
template<class F > | |
TimerWait (F &&f) | |
Constructs a wait operation with a completion task. | |
ev::Executor | get_executor () const noexcept |
Returns the executor to which the completion task is (to be) submitted. | |
Additional Inherited Members | |
![]() | |
struct ev_task | task |
The task (to be) submitted upon completion (or cancellation) of the wait operation. | |
struct io_timer_wait_result | r |
The result of the wait operation. | |
A wait operation suitable for use with an I/O timer.
This class stores a callable object with signature void(int overrun, std::error_code ec)
, which is invoked upon completion (or cancellation) of the wait operation.