Package: effect
Module: SynchronizedRef
Sets the value of the SynchronizedRef and returns the new value.
When to use
Use to replace the current SynchronizedRef value with a known value and
return that new value.
See
set for setting without returning a valuegetAndSet for setting while returning the previous valueSignature
declare const setAndGet: { <A>(value: A): (self: SynchronizedRef<A>) => Effect.Effect<A>; <A>(self: SynchronizedRef<A>, value: A): Effect.Effect<A>; }
Since v2.0.0