Package: effect
Module: SubscriptionRef
Constructs a new SubscriptionRef from an initial value.
When to use
Use to create a SubscriptionRef when consumers need to read the latest
value and subscribe to every update.
Details
The initial value is published during construction, so changes starts new
subscribers with that value before future updates.
See
changes for streaming the current value and subsequent updatesset for replacing the value and notifying subscribersSignature
declare const make: <A>(value: A) => Effect.Effect<SubscriptionRef<A>>
Since v2.0.0