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

Method Release

test/threadsafe_function/threadsafe_function_ctx.cc:20–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18 };
19
20 Napi::Value Release(const CallbackInfo& info) {
21 Napi::Env env = info.Env();
22 _deferred = std::unique_ptr<Promise::Deferred>(new Promise::Deferred(env));
23 _tsfn.Release();
24 return _deferred->Promise();
25 };
26
27 private:
28 ThreadSafeFunction _tsfn;

Callers 11

TestFunction · 0.45
TestCallFunction · 0.45
entryWithTSFNFunction · 0.45
entryDelayedTSFNMethod · 0.45
entryAcquireFunction · 0.45
SecondaryThreadFunction · 0.45
DataSourceThreadFunction · 0.45
StopThreadFunction · 0.45
ReleaseFunction · 0.45

Calls 2

EnvMethod · 0.80
PromiseMethod · 0.80

Tested by 3

TestFunction · 0.36
TestCallFunction · 0.36