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

Method RunOnMain

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

Source from the content-addressed store, hash-verified

196 }
197
198 static void __cdecl RunOnMain(uv_async_t* async, std::function<void()> func) {
199 TokenData* Token = static_cast<TokenData*>(async->data);
200 Token->func = func;
201 uv_async_send(async);
202 }
203
204 static void __cdecl RunOnMain(std::function<void()> func) {
205 uv_async_t* async = GetAsyncToken();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected