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

Method remove

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

Source from the content-addressed store, hash-verified

68 }
69
70 remove(key: K): Effect.Effect<void> {
71 return Effect.suspend(() => {
72 const entry = MutableHashMap.get(this.entries, key)
73 if (Option.isNone(entry)) {
74 return Effect.void
75 }
76 MutableHashMap.remove(this.entries, key)
77 return Scope.close(entry.value.scope, Exit.void)
78 })
79 }
80
81 removeIgnore(key: K): Effect.Effect<void> {
82 return Effect.catchAllCause(this.remove(key), (cause) =>

Callers 1

removeIgnoreMethod · 0.95

Calls 3

getMethod · 0.65
removeMethod · 0.65
closeMethod · 0.65

Tested by

no test coverage detected