MCPcopy Index your code
hub / github.com/nodejs/node / enabledWithDestroy

Function enabledWithDestroy

benchmark/async_hooks/promises.js:17–22  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

15 }).enable();
16 },
17 enabledWithDestroy() {
18 hook = createHook({
19 promiseResolve() {},
20 destroy() {},
21 }).enable();
22 },
23 enabledWithInitOnly() {
24 hook = createHook({
25 init() {},

Callers

nothing calls this directly

Calls 2

createHookFunction · 0.50
enableMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…