MCPcopy Index your code
hub / github.com/nodejs/node-addon-api / AsyncWorker

Method AsyncWorker

napi-inl.h:5574–5575  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5572#if NAPI_HAS_THREADS
5573
5574inline AsyncWorker::AsyncWorker(const Function& callback)
5575 : AsyncWorker(callback, "generic") {}
5576
5577inline AsyncWorker::AsyncWorker(const Function& callback,
5578 const char* resource_name)

Callers

nothing calls this directly

Calls 2

PersistentFunction · 0.85
EnvMethod · 0.80

Tested by

no test coverage detected