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

Function fiberRefMakeWith

packages/effect/src/internal/fiberRuntime.ts:3395–3401  ·  view source on GitHub ↗
(
  ref: LazyArg<FiberRef.FiberRef<Value>>
)

Source from the content-addressed store, hash-verified

3393
3394/* @internal */
3395export const fiberRefMakeWith = <Value>(
3396 ref: LazyArg<FiberRef.FiberRef<Value>>
3397): Effect.Effect<FiberRef.FiberRef<Value>, never, Scope.Scope> =>
3398 acquireRelease(
3399 core.tap(core.sync(ref), (ref) => core.fiberRefUpdate(ref, identity)),
3400 (fiberRef) => core.fiberRefDelete(fiberRef)
3401 )
3402
3403/* @internal */
3404export const fiberRefMakeContext = <A>(

Callers 3

fiberRefMakeFunction · 0.85
fiberRefMakeContextFunction · 0.85
fiberRefMakeRuntimeFlagsFunction · 0.85

Calls 2

syncMethod · 0.80
acquireReleaseFunction · 0.70

Tested by

no test coverage detected