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

Method Unref

napi-inl.h:3752–3757  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3750
3751template <typename T>
3752inline uint32_t Reference<T>::Unref() const {
3753 uint32_t result;
3754 napi_status status = napi_reference_unref(_env, _ref, &result);
3755 NAPI_THROW_IF_FAILED(_env, status, 0);
3756 return result;
3757}
3758
3759template <typename T>
3760inline void Reference<T>::Reset() {

Callers 7

FinalizeMethod · 0.80
UnrefObjectsFunction · 0.80
ReferenceRefTestsFunction · 0.80
TestUnrefFunction · 0.80
TestRefFunction · 0.80
TestUnrefFunction · 0.80
TestRefFunction · 0.80

Calls

no outgoing calls

Tested by 4

TestUnrefFunction · 0.64
TestRefFunction · 0.64
TestUnrefFunction · 0.64
TestRefFunction · 0.64