Package: effect
Module: SynchronizedRef
Applies a partial update to the current value. Option.some stores the new
value; Option.none leaves the ref unchanged.
When to use
Use to apply a pure conditional SynchronizedRef update without returning a
value.
See
update for always applying a pure updateupdateSomeAndGet for returning the resulting current valueSignature
declare const updateSome: { <A>(f: (a: A) => Option.Option<A>): (self: SynchronizedRef<A>) => Effect.Effect<void>; <A>(self: SynchronizedRef<A>, f: (a: A) => Option.Option<A>): Effect.Effect<void>; }
Since v2.0.0