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

Function make

packages/effect/src/MutableRef.ts:118–122  ·  view source on GitHub ↗
(value: T)

Source from the content-addressed store, hash-verified

116 * @since 2.0.0
117 */
118export const make = <T>(value: T): MutableRef<T> => {
119 const ref = Object.create(MutableRefProto)
120 ref.current = value
121 return ref
122}
123
124/**
125 * Sets the value to newValue atomically if the current value equals oldValue.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected