Hyperlinkv0.8.0-beta.28

SynchronizedRef

SynchronizedRef.getUnsafeconsteffect/SynchronizedRef.ts:107
<A>(self: SynchronizedRef<A>): A

Reads the current value synchronously, bypassing the Effect API and the ref's semaphore.

When to use

Use when you need immediate synchronous access to a SynchronizedRef value in low-level code that can safely read outside an Effect.

gettersget
export const getUnsafe = <A>(self: SynchronizedRef<A>): A => self.backing.ref.current
Referenced by 9 symbols