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

Function fiberRefUnsafeMakeContext

packages/effect/src/internal/core.ts:1973–1981  ·  view source on GitHub ↗
(
  initial: Context.Context<A>
)

Source from the content-addressed store, hash-verified

1971
1972/** @internal */
1973export const fiberRefUnsafeMakeContext = <A>(
1974 initial: Context.Context<A>
1975): FiberRef.FiberRef<Context.Context<A>> => {
1976 const differ = internalDiffer.environment<A>()
1977 return fiberRefUnsafeMakePatch(initial, {
1978 differ,
1979 fork: differ.empty
1980 })
1981}
1982
1983/** @internal */
1984export const fiberRefUnsafeMakePatch = <Value, Patch>(

Callers 1

core.tsFile · 0.85

Calls 1

fiberRefUnsafeMakePatchFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…