MCPcopy Create free account
hub / github.com/NodeRT/NodeRT / NextTick

Method NextTick

src/NodeRTLib/ProjectFiles/node-async.h:233–236  ·  view source on GitHub ↗

defers execution of the provided function by creating an idler that means, the function will be invoked once the event loop has delivered all pending events.

Source from the content-addressed store, hash-verified

231 // that means, the function will be invoked once the event loop has delivered
232 // all pending events.
233 static void __cdecl NextTick(std::function<void()> func) {
234 uv_idle_t* idler = GetIdleToken();
235 NextTick(idler, func);
236 }
237
238 static void __cdecl NextTick(uv_idle_t* idler, std::function<void()> func) {
239 TokenData* Token = static_cast<TokenData*>(idler->data);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected