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

Method constructor

packages/effect/src/PubSub.ts:2292–2306  ·  view source on GitHub ↗
(
    pubsub: PubSub.Atomic<A>,
    subscribers: PubSub.Subscribers<A>,
    scope: Scope.Closeable,
    shutdownHook: Latch.Latch,
    shutdownFlag: MutableRef.MutableRef<boolean>,
    strategy: PubSub.Strategy<A>
  )

Source from the content-addressed store, hash-verified

2290 readonly strategy: PubSub.Strategy<A>
2291
2292 constructor(
2293 pubsub: PubSub.Atomic<A>,
2294 subscribers: PubSub.Subscribers<A>,
2295 scope: Scope.Closeable,
2296 shutdownHook: Latch.Latch,
2297 shutdownFlag: MutableRef.MutableRef<boolean>,
2298 strategy: PubSub.Strategy<A>
2299 ) {
2300 this.pubsub = pubsub
2301 this.subscribers = subscribers
2302 this.scope = scope
2303 this.shutdownHook = shutdownHook
2304 this.shutdownFlag = shutdownFlag
2305 this.strategy = strategy
2306 }
2307
2308 pipe() {
2309 return pipeArguments(this, arguments)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected