qb  2.0.0.0
C++17 Actor Framework
qb Issue Watch Star Fork Follow @isndev
Loading...
Searching...
No Matches
timer.h
Go to the documentation of this file.
1
24
25#ifndef QB_IO_ASYNC_EVENT_TIMER_H
26#define QB_IO_ASYNC_EVENT_TIMER_H
27
28#include "base.h"
29
30namespace qb::io::async::event {
31
64struct timer : base<ev::timer> {
66
71 explicit timer(ev::loop_ref loop)
72 : base_t(loop) {}
73};
74
83using timeout = timer;
84
85} // namespace qb::io::async::event
86
87#endif // QB_IO_ASYNC_EVENT_TIMER_H
Base class for asynchronous events in the QB IO library.
timer timeout
Alias for qb::io::async::event::timer to be used specifically in timeout scenarios.
Definition timer.h:83
base(ev::loop_ref loop)
Definition base.h:83
Event for handling time-based operations (timers and timeouts).
Definition timer.h:64
base< ev::timer > base_t
Base type alias for base<ev::timer>.
Definition timer.h:65
timer(ev::loop_ref loop)
Constructor.
Definition timer.h:71