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

Method OnOK

napi-inl.h:5685–5689  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5683}
5684
5685inline void AsyncWorker::OnOK() {
5686 if (!_callback.IsEmpty()) {
5687 _callback.Call(_receiver.Value(), GetResult(_callback.Env()));
5688 }
5689}
5690
5691inline void AsyncWorker::OnError(const Error& e) {
5692 if (!_callback.IsEmpty()) {

Callers

nothing calls this directly

Calls 4

IsEmptyMethod · 0.80
CallMethod · 0.80
ValueMethod · 0.80
EnvMethod · 0.80

Tested by

no test coverage detected