Package: effect
Module: SynchronizedRef
Sets the value of the SynchronizedRef, serialized by the ref’s semaphore.
When to use
Use to replace the current value of a SynchronizedRef with a known value
while keeping the write serialized with other synchronized updates.
See
getAndSet for replacing the value when the previous value is neededsetAndGet for replacing the value when the new value should be returnedupdate for deriving the next value from the current valueSignature
declare const set: { <A>(value: A): (self: SynchronizedRef<A>) => Effect.Effect<void>; <A>(self: SynchronizedRef<A>, value: A): Effect.Effect<void>; }
Since v2.0.0