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

Method DelayRequest

test/cpp/asyncresource.cpp:17–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15class DelayRequest : public AsyncResource {
16 public:
17 DelayRequest(int milliseconds_, v8::Local<v8::Function> callback_)
18 : AsyncResource("nan:test.DelayRequest"),
19 milliseconds(milliseconds_) {
20 callback.Reset(callback_);
21 request.data = this;
22 }
23 ~DelayRequest() {
24 callback.Reset();
25 }

Callers

nothing calls this directly

Calls 1

ResetMethod · 0.45

Tested by

no test coverage detected