MCPcopy Create free account
hub / github.com/Effect-TS/effect / unsafeMakeSynchronized

Function unsafeMakeSynchronized

packages/effect/src/internal/effect/circular.ts:708–712  ·  view source on GitHub ↗
(value: A)

Source from the content-addressed store, hash-verified

706
707/** @internal */
708export const unsafeMakeSynchronized = <A>(value: A): Synchronized.SynchronizedRef<A> => {
709 const ref = internalRef.unsafeMake(value)
710 const sem = unsafeMakeSemaphore(1)
711 return new SynchronizedImpl(ref, sem.withPermits(1))
712}
713
714/** @internal */
715export const updateSomeAndGetEffectSynchronized = dual<

Callers 1

makeSynchronizedFunction · 0.85

Calls 2

withPermitsMethod · 0.80
unsafeMakeSemaphoreFunction · 0.70

Tested by

no test coverage detected