MCPcopy
hub / github.com/jestjs/jest / hasMutex

Method hasMutex

packages/jest-runtime/src/internals/TransformCache.ts:112–114  ·  view source on GitHub ↗
(key: string)

Source from the content-addressed store, hash-verified

110 // concurrent `loadEsmModule` calls on the legacy async path. Goes away
111 // once min-Node ≥ v24.9 makes that path obsolete.
112 hasMutex(key: string): boolean {
113 return this.mutex.has(key);
114 }
115 awaitMutex(key: string): Promise<void> | undefined {
116 return this.mutex.get(key);
117 }

Callers 3

tryLoadGraphSyncMethod · 0.80
loadEsmModuleMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected