import { IFiberRefNew } from "../Effect/primitives"
import { identity } from "../Function"
import { FiberRef } from "./fiberRef"
/**
 * Creates a new `FiberRef` with given initial value.
 */

export function make(initial, onFork = identity, onJoin = (_, a) => a) {
  return new IFiberRefNew(initial, onFork, onJoin)
}
/**
 * Creates a new `FiberRef` with given initial value.
 */

export function unsafeMake(initial, onFork = identity, onJoin = (_, a) => a) {
  return new FiberRef(initial, onFork, onJoin)
}
//# sourceMappingURL=make.js.map
