MCPcopy Index your code
hub / github.com/Effect-TS/effect / cleanup

Function cleanup

packages/effect/src/PartitionedSemaphore.ts:118–123  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

116 }
117 }
118 function cleanup() {
119 waiters.delete(entry)
120 if (waiters.size === 0) {
121 MutableHashMap.remove(partitions, key)
122 }
123 }
124 waiters.add(entry)
125 return Effect.sync(() => {
126 cleanup()

Callers 6

resumeFunction · 0.85
takeFunction · 0.85
core.tsFile · 0.85
stream.tsFile · 0.85
onErrorMethod · 0.85
runWithClientMethod · 0.85

Calls 1

removeMethod · 0.65

Tested by

no test coverage detected