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

Method NODEASYNC_ASYNC_WORK_CB

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

Called by run on main in case we are not running on the main thread

Source from the content-addressed store, hash-verified

360
361 // Called by run on main in case we are not running on the main thread
362 NODEASYNC_ASYNC_WORK_CB(AsyncCb) {
363 auto Token = static_cast<TokenData*>(handle->data);
364 Token->func();
365 uv_close((uv_handle_t*)handle, AyncCloseCb);
366 delete Token;
367 }
368
369 NODEASYNC_IDLE_WORK_CB(onNextTick) {
370 std::function<void()>* func =

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected