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

Function sizeUnsafe

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

Source from the content-addressed store, hash-verified

636 * @since 4.0.0
637 */
638export const sizeUnsafe = <A>(self: PubSub<A>): number => {
639 if (MutableRef.get(self.shutdownFlag)) {
640 return 0
641 }
642 return self.pubsub.size()
643}
644
645/**
646 * Returns `true` when the `PubSub` has reached its configured capacity.

Callers 1

sizeFunction · 0.70

Calls 2

getMethod · 0.65
sizeMethod · 0.65

Tested by

no test coverage detected