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

Method setMutex

packages/jest-runtime/src/internals/TransformCache.ts:118–120  ·  view source on GitHub ↗
(key: string, promise: Promise<void>)

Source from the content-addressed store, hash-verified

116 return this.mutex.get(key);
117 }
118 setMutex(key: string, promise: Promise<void>): void {
119 this.mutex.set(key, promise);
120 }
121 clearMutex(key: string): void {
122 this.mutex.delete(key);
123 }

Callers 2

loadEsmModuleMethod · 0.80

Calls 1

setMethod · 0.45

Tested by

no test coverage detected