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

Method subscribe

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

Source from the content-addressed store, hash-verified

2119 }
2120
2121 subscribe(): PubSub.BackingSubscription<A> {
2122 this.publisherTail.subscribers += 1
2123 return new UnboundedPubSubSubscription(
2124 this,
2125 this.publisherTail,
2126 this.publisherIndex,
2127 false
2128 )
2129 }
2130}
2131
2132class UnboundedPubSubSubscription<in out A> implements PubSub.BackingSubscription<A> {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected