Hyperlinkv0.8.0-beta.28

SynchronizedRef

SynchronizedRef.makeUnsafeconsteffect/SynchronizedRef.ts:65
<A>(value: A): SynchronizedRef<A>

Creates a SynchronizedRef synchronously from an initial value.

When to use

Use when you need synchronous SynchronizedRef construction outside an Effect workflow.

constructors
export const makeUnsafe = <A>(value: A): SynchronizedRef<A> => {
  const self = Object.create(Proto)
  self.semaphore = Semaphore.makeUnsafe(1)
  self.backing = Ref.makeUnsafe(value)
  return self
}
Referenced by 1 symbols