MCPcopy Create free account
hub / github.com/nodejs/nan / Delay

Function Delay

test/cpp/asyncresource.cpp:32–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30};
31
32void Delay(uv_work_t* req) {
33 DelayRequest *delay_request = static_cast<DelayRequest*>(req->data);
34 Sleep(delay_request->milliseconds);
35}
36
37void AfterDelay(uv_work_t* req, int status) {
38 HandleScope scope;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected