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

Method enterWith

lib/internal/async_local_storage/async_hooks.js:100–104  ·  view source on GitHub ↗
(store)

Source from the content-addressed store, hash-verified

98 }
99
100 enterWith(store) {
101 this._enable();
102 const resource = executionAsyncResource();
103 resource[this.kResourceStore] = store;
104 }
105
106 run(store, callback, ...args) {
107 // Avoid creation of an AsyncResource if store is already active

Calls 2

_enableMethod · 0.95
executionAsyncResourceFunction · 0.85

Tested by

no test coverage detected