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

Method bind

lib/internal/async_local_storage/async_hooks.js:64–66  ·  view source on GitHub ↗
(fn)

Source from the content-addressed store, hash-verified

62 get name() { return this.#name || ''; }
63
64 static bind(fn) {
65 return AsyncResource.bind(fn);
66 }
67
68 static snapshot() {
69 return AsyncLocalStorage.bind((cb, ...args) => cb(...args));

Callers 15

_createSocketHandleFunction · 0.45
gotFunction · 0.45
emitHookFactoryFunction · 0.45
setStreamTimeoutFunction · 0.45
resolveSyncMethod · 0.45
#loadSyncMethod · 0.45
runMethod · 0.45
createBuildMethod · 0.45
parseCommandLineFunction · 0.45
constructorMethod · 0.45
snapshotMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected