Package: effect
Module: SynchronizedRef
Updates the value of the SynchronizedRef with a function, serialized by the
ref’s semaphore.
When to use
Use to apply a pure state transition to a SynchronizedRef as a serialized
Effect.
See
updateEffect for effectfully deriving the next valueupdateAndGet for returning the new stored valuegetAndUpdate for returning the previous stored valueSignature
declare const update: { <A>(f: (a: A) => A): (self: SynchronizedRef<A>) => Effect.Effect<void>; <A>(self: SynchronizedRef<A>, f: (a: A) => A): Effect.Effect<void>; }
Since v2.0.0