MCPcopy Index your code
hub / github.com/simstudioai/sim / evict

Function evict

apps/sim/lib/concurrency/singleflight.ts:39–41  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

37
38 let timer: ReturnType<typeof setTimeout> | undefined
39 const evict = () => {
40 if (inflight.get(key) === guarded) inflight.delete(key)
41 }
42
43 const guarded: Promise<T> = Promise.race([
44 (async () => {

Callers 1

coalesceLocallyFunction · 0.85

Calls 2

getMethod · 0.65
deleteMethod · 0.65

Tested by

no test coverage detected