Package: effect
Module: PubSub
Represents the back-pressure strategy for bounded PubSub values.
When to use
Use to preserve every message for current subscribers when a bounded custom
PubSub should make publishers wait for capacity instead of dropping or
evicting messages.
Details
Publishers wait when the PubSub is at capacity, so all current subscribers
can receive every published message.
Gotchas
A slow subscriber can slow down publishers and other subscribers.
See
bounded for creating bounded PubSubs with back pressure by defaultDroppingStrategy for dropping new messages when capacity is fullSlidingStrategy for evicting old messages when capacity is fullSignature
declare class BackPressureStrategy<A>
Since v4.0.0