MCPcopy Create free account
hub / github.com/Effect-TS/effect / remove

Method remove

packages/cluster/src/internal/resourceMap.ts:67–76  ·  view source on GitHub ↗
(key: K)

Source from the content-addressed store, hash-verified

65 }
66
67 remove(key: K): Effect.Effect<void> {
68 return Effect.suspend(() => {
69 const entry = backingGet(this.entries, key)
70 if (!entry) {
71 return Effect.void
72 }
73 backingDelete(this.entries, key)
74 return Scope.close(entry.scope, Exit.void)
75 })
76 }
77
78 removeIgnore(key: K): Effect.Effect<void> {
79 return Effect.catchAllCause(this.remove(key), (cause) =>

Callers 1

removeIgnoreMethod · 0.95

Calls 3

backingGetFunction · 0.85
backingDeleteFunction · 0.85
closeMethod · 0.65

Tested by

no test coverage detected