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

Method DoWork

test/async_worker.cc:12–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10class TestWorkerWithUserDefRecv : public AsyncWorker {
11 public:
12 static void DoWork(const CallbackInfo& info) {
13 Object recv = info[0].As<Object>();
14 Function cb = info[1].As<Function>();
15
16 TestWorkerWithUserDefRecv* worker = new TestWorkerWithUserDefRecv(recv, cb);
17 worker->Queue();
18 }
19
20 static void DoWorkWithAsyncRes(const CallbackInfo& info) {
21 Object recv = info[0].As<Object>();

Callers

nothing calls this directly

Calls 1

QueueMethod · 0.80

Tested by

no test coverage detected