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

Method DoWork

test/async_progress_worker.cc:305–312  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

303class SignalAfterProgressTestWorker : public AsyncProgressWorker<ProgressData> {
304 public:
305 static void DoWork(const CallbackInfo& info) {
306 Function cb = info[0].As<Function>();
307 Function progress = info[1].As<Function>();
308
309 SignalAfterProgressTestWorker* worker = new SignalAfterProgressTestWorker(
310 cb, progress, "TestResource", Object::New(info.Env()));
311 worker->Queue();
312 }
313
314 protected:
315 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