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

Method handleSurplus

packages/effect/src/PubSub.ts:179–179  ·  view source on GitHub ↗

* Describes how publishers should signal to subscribers that they are * waiting for space to become available in the `PubSub`. * * **Details** * * The publisher may have yielded since `publish` checked `ended`, so it * must be checked again before registering or publish

(
      pubsub: Atomic<A>,
      subscribers: Subscribers<A>,
      elements: Iterable<A>,
      isShutdown: MutableRef.MutableRef<boolean>,
      ended: MutableRef.MutableRef<Option.Option<A>>,
      owner?: PubSub<A>
    )

Source from the content-addressed store, hash-verified

177 * publisher is blocked on (since 4.1.2).
178 */
179 handleSurplus(
180 pubsub: Atomic<A>,
181 subscribers: Subscribers<A>,
182 elements: Iterable<A>,

Callers 1

PubSub.tsFile · 0.65

Implementers 3

BackPressureStrategypackages/effect/src/PubSub.ts
DroppingStrategypackages/effect/src/PubSub.ts
SlidingStrategypackages/effect/src/PubSub.ts

Calls

no outgoing calls

Tested by

no test coverage detected