MCPcopy Index your code
hub / github.com/Effect-TS/effect / fiberRefMake

Function fiberRefMake

packages/effect/src/internal/fiberRuntime.ts:3385–3392  ·  view source on GitHub ↗
(
  initial: A,
  options?: {
    readonly fork?: ((a: A) => A) | undefined
    readonly join?: ((left: A, right: A) => A) | undefined
  }
)

Source from the content-addressed store, hash-verified

3383
3384/* @internal */
3385export const fiberRefMake = <A>(
3386 initial: A,
3387 options?: {
3388 readonly fork?: ((a: A) => A) | undefined
3389 readonly join?: ((left: A, right: A) => A) | undefined
3390 }
3391): Effect.Effect<FiberRef.FiberRef<A>, never, Scope.Scope> =>
3392 fiberRefMakeWith(() => core.fiberRefUnsafeMake(initial, options))
3393
3394/* @internal */
3395export const fiberRefMakeWith = <Value>(

Callers

nothing calls this directly

Calls 1

fiberRefMakeWithFunction · 0.85

Tested by

no test coverage detected