Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/nodejs/node-addon-api
/ OnOK
Method
OnOK
test/async_worker.cc:180–180 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
178
protected:
179
void Execute() override {}
180
virtual void OnOK() override { _deferred.Resolve(Env().Undefined()); }
181
virtual void OnError(const Napi::Error& /* e */) override {
182
_deferred.Reject(Env().Undefined());
183
}
Callers
nothing calls this directly
Calls
2
Env
Class · 0.85
Resolve
Method · 0.80
Tested by
no test coverage detected