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

Method disable

lib/internal/async_local_storage/async_hooks.js:72–82  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

70 }
71
72 disable() {
73 if (this.enabled) {
74 this.enabled = false;
75 // If this.enabled, the instance must be in storageList
76 const index = ArrayPrototypeIndexOf(storageList, this);
77 ArrayPrototypeSplice(storageList, index, 1);
78 if (storageList.length === 0) {
79 storageHook.disable();
80 }
81 }
82 }
83
84 _enable() {
85 if (!this.enabled) {

Callers 1

exitMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected