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

Function size

packages/effect/src/FiberMap.ts:988–989  ·  view source on GitHub ↗
(self: FiberMap<K, A, E>)

Source from the content-addressed store, hash-verified

986 * @since 2.0.0
987 */
988export const size = <K, A, E>(self: FiberMap<K, A, E>): Effect.Effect<number> =>
989 Effect.sync(() => self.state._tag === "Closed" ? 0 : MutableHashMap.size(self.state.backing))
990
991/**
992 * Waits for the `FiberMap` to fail or close.

Callers

nothing calls this directly

Calls 2

sizeMethod · 0.65
syncMethod · 0.45

Tested by

no test coverage detected