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

Method size

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

Source from the content-addressed store, hash-verified

2170 }
2171
2172 size() {
2173 if (this.unsubscribed) {
2174 return 0
2175 }
2176 return this.self.publisherIndex - Math.max(this.subscriberIndex, this.self.subscribersIndex)
2177 }
2178
2179 poll(): A | MutableList.Empty {
2180 if (this.unsubscribed) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected