MCPcopy Create free account
hub / github.com/nodejs/node-addon-api / Destroy

Method Destroy

test/async_worker.cc:70–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68 protected:
69 void Execute() override {}
70 void Destroy() override {
71 assert(this->_secretVal == 24);
72 Allocator allocator;
73 std::allocator_traits<Allocator>::destroy(allocator, this);
74 allocator.deallocate(this, 1);
75 }
76
77 private:
78 int _secretVal = 24;

Callers

nothing calls this directly

Calls 1

destroyFunction · 0.70

Tested by

no test coverage detected