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

Method WaitForWorkerTaskToStart

test/async_worker.cc:238–242  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

236 ~FailCancelWorker() {}
237
238 void WaitForWorkerTaskToStart() {
239 std::unique_lock<std::mutex> lk(mu);
240 taskStartingCv.wait(lk, [this] { return taskIsRunning; });
241 taskIsRunning = false;
242 }
243
244 static void DoCancel(const CallbackInfo& info) {
245 Function cb = info[0].As<Function>();

Callers 1

DoCancelMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected