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

Method size

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

Source from the content-addressed store, hash-verified

1819 }
1820
1821 size() {
1822 if (this.unsubscribed) {
1823 return 0
1824 }
1825 return this.self.publisherIndex - Math.max(this.subscriberIndex, this.self.subscribersIndex)
1826 }
1827
1828 poll(): A | MutableList.Empty {
1829 if (this.unsubscribed) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected