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

Method constructor

packages/effect/src/PubSub.ts:2255–2273  ·  view source on GitHub ↗
(
    pubsub: PubSub.Atomic<A>,
    subscribers: PubSub.Subscribers<A>,
    subscription: PubSub.BackingSubscription<A>,
    pollers: MutableList.MutableList<Deferred.Deferred<A>>,
    shutdownHook: Latch.Latch,
    shutdownFlag: MutableRef.MutableRef<boolean>,
    strategy: PubSub.Strategy<A>,
    replayWindow: PubSub.ReplayWindow<A>
  )

Source from the content-addressed store, hash-verified

2253 readonly replayWindow: PubSub.ReplayWindow<A>
2254
2255 constructor(
2256 pubsub: PubSub.Atomic<A>,
2257 subscribers: PubSub.Subscribers<A>,
2258 subscription: PubSub.BackingSubscription<A>,
2259 pollers: MutableList.MutableList<Deferred.Deferred<A>>,
2260 shutdownHook: Latch.Latch,
2261 shutdownFlag: MutableRef.MutableRef<boolean>,
2262 strategy: PubSub.Strategy<A>,
2263 replayWindow: PubSub.ReplayWindow<A>
2264 ) {
2265 this.pubsub = pubsub
2266 this.subscribers = subscribers
2267 this.subscription = subscription
2268 this.pollers = pollers
2269 this.shutdownHook = shutdownHook
2270 this.shutdownFlag = shutdownFlag
2271 this.strategy = strategy
2272 this.replayWindow = replayWindow
2273 }
2274
2275 pipe() {
2276 return pipeArguments(this, arguments)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected