MCPcopy Create free account
hub / github.com/Shangyizhou/A-Tiny-Network-Library / runAt

Method runAt

include/tiny_network/net/EventLoop.h:56–58  ·  view source on GitHub ↗

* 定时任务相关函数 */

Source from the content-addressed store, hash-verified

54 * 定时任务相关函数
55 */
56 void runAt(Timestamp timestamp, Functor&& cb) {
57 timerQueue_->addTimer(std::move(cb), timestamp, 0.0);
58 }
59
60 void runAfter(double waitTime, Functor&& cb) {
61 Timestamp time(addTime(Timestamp::now(), waitTime));

Callers

nothing calls this directly

Calls 1

addTimerMethod · 0.80

Tested by

no test coverage detected