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

Method size

packages/effect/src/PubSub.ts:1625–1630  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1623 }
1624
1625 size() {
1626 if (this.unsubscribed) {
1627 return 0
1628 }
1629 return this.self.publisherIndex - Math.max(this.subscriberIndex, this.self.subscribersIndex)
1630 }
1631
1632 poll(): A | MutableList.Empty {
1633 if (this.unsubscribed) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected