(self: PubSub<A>)
| 636 | * @since 4.0.0 |
| 637 | */ |
| 638 | export 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. |