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

Function isFull

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

Source from the content-addressed store, hash-verified

679 * @since 2.0.0
680 */
681export const isFull = <A>(self: PubSub<A>): Effect.Effect<boolean> =>
682 Effect.map(size(self), (size) => size === self.pubsub.capacity)
683
684/**
685 * Returns `true` if the `Pubsub` contains zero elements, `false` otherwise.

Callers

nothing calls this directly

Calls 2

sizeFunction · 0.70
mapMethod · 0.45

Tested by

no test coverage detected