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

Function size

packages/effect/src/PubSub.ts:606–606  ·  view source on GitHub ↗
(self: PubSub<A>)

Source from the content-addressed store, hash-verified

604 * @since 2.0.0
605 */
606export const size = <A>(self: PubSub<A>): Effect.Effect<number> => Effect.sync(() => sizeUnsafe(self))
607/**
608 * Returns the current number of messages retained by the `PubSub` for active
609 * subscribers synchronously.

Callers 2

isFullFunction · 0.70
isEmptyFunction · 0.70

Calls 2

sizeUnsafeFunction · 0.70
syncMethod · 0.45

Tested by

no test coverage detected