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

Method Execute

test/async_worker.cc:207–210  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

205 ~EchoWorker() {}
206
207 void Execute() override {
208 // Simulate cpu heavy task
209 std::this_thread::sleep_for(std::chrono::milliseconds(30));
210 }
211
212 void OnOK() override {
213 HandleScope scope(Env());

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected