2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
42#include "core/EventReceiver.h"
44#ifndef DOXYGEN_SHOULD_SKIP_THIS
53 explicit NextTickEvent(
const std::function<
void(
void)>& callBack)
54 : core::EventReceiver(
"RequestEvent")
55 , callBack(callBack) {
58 void onEvent([[maybe_unused]]
const utils::
Timeval& currentTime)
override {
65 std::function<
void(
void)> callBack;
68 (
new NextTickEvent(callBack))
->span();
88 return event.getName();
const std::string & getName() const
static void atNextTick(const std::function< void(void)> &callBack)
EventReceiver(const std::string &name)