MCPcopy Create free account
hub / github.com/nodejs/node-addon-api / DoWork

Method DoWork

test/async_progress_worker.cc:234–241  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

232class MalignWorker : public AsyncProgressWorker<ProgressData> {
233 public:
234 static void DoWork(const CallbackInfo& info) {
235 Function cb = info[0].As<Function>();
236 Function progress = info[1].As<Function>();
237
238 MalignWorker* worker =
239 new MalignWorker(cb, progress, "TestResource", Object::New(info.Env()));
240 worker->Queue();
241 }
242
243 protected:
244 void Execute(const ExecutionProgress& progress) override {

Callers

nothing calls this directly

Calls 2

EnvMethod · 0.80
QueueMethod · 0.80

Tested by

no test coverage detected