2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
20#include "core/EventReceiver.h"
22#ifndef DOXYGEN_SHOULD_SKIP_THIS
31 explicit NextTickEvent(
const std::function<
void(
void)>& callBack)
32 : core::EventReceiver(
"RequestEvent")
33 , callBack(callBack) {
36 void onEvent([[maybe_unused]]
const utils::
Timeval& currentTime)
override {
43 std::function<
void(
void)> callBack;
46 (
new NextTickEvent(callBack))
->span();
66 return event.getName();
const std::string & getName() const
static void atNextTick(const std::function< void(void)> &callBack)
EventReceiver(const std::string &name)