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

Function fiberRefLocallyScoped

packages/effect/src/internal/layer.ts:655–656  ·  view source on GitHub ↗
(self: FiberRef<A>, value: A)

Source from the content-addressed store, hash-verified

653
654/** @internal */
655export const fiberRefLocallyScoped = <A>(self: FiberRef<A>, value: A): Layer.Layer<never> =>
656 scopedDiscard(fiberRuntime.fiberRefLocallyScoped(self, value))
657
658/** @internal */
659export const fiberRefLocallyScopedWith = <A>(self: FiberRef<A>, value: (_: A) => A): Layer.Layer<never> =>

Callers 1

fiberRuntime.tsFile · 0.85

Calls 1

scopedDiscardFunction · 0.85

Tested by

no test coverage detected