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

Function makeUnsafe

packages/effect/src/SynchronizedRef.ts:65–70  ·  view source on GitHub ↗
(value: A)

Source from the content-addressed store, hash-verified

63 * @since 4.0.0
64 */
65export const makeUnsafe = <A>(value: A): SynchronizedRef<A> => {
66 const self = Object.create(Proto)
67 self.semaphore = Semaphore.makeUnsafe(1)
68 self.backing = Ref.makeUnsafe(value)
69 return self
70}
71
72/**
73 * Creates a `SynchronizedRef` from an initial value, wrapped in an `Effect`.

Callers 1

makeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected