effect-io-ai

Package: effect
Module: SynchronizedRef

SynchronizedRef.make

Creates a SynchronizedRef from an initial value, wrapped in an Effect.

When to use

Use to create a SynchronizedRef inside an Effect program when later updates may run effects and must be serialized.

Details

The returned effect constructs a fresh SynchronizedRef by delegating to makeUnsafe when the effect is evaluated.

See

Signature

declare const make: <A>(value: A) => Effect.Effect<SynchronizedRef<A>>

Source

Since v2.0.0