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

Function keys

packages/effect/src/RcMap.ts:464–468  ·  view source on GitHub ↗
(self: RcMap<K, A, E>)

Source from the content-addressed store, hash-verified

462 * @since 3.8.0
463 */
464export const keys = <K, A, E>(self: RcMap<K, A, E>): Effect.Effect<Iterable<K>> => {
465 return Effect.suspend(() =>
466 self.state._tag === "Closed" ? Effect.interrupt : Effect.succeed(MutableHashMap.keys(self.state.map))
467 )
468}
469
470/**
471 * Invalidates and removes a specific key from the RcMap. If the resource is not

Callers

nothing calls this directly

Calls 1

succeedMethod · 0.45

Tested by

no test coverage detected