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

Function isEmpty

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

Source from the content-addressed store, hash-verified

713 * @since 2.0.0
714 */
715export const isEmpty = <A>(self: PubSub<A>): Effect.Effect<boolean> => Effect.map(size(self), (size) => size === 0)
716
717/**
718 * Shuts down the `PubSub`, interrupting suspended publishers and subscribers

Callers

nothing calls this directly

Calls 2

sizeFunction · 0.70
mapMethod · 0.45

Tested by

no test coverage detected