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

Function scopedDiscard

packages/effect/src/internal/layer.ts:953–955  ·  view source on GitHub ↗
(
  effect: Effect.Effect<X, E, R>
)

Source from the content-addressed store, hash-verified

951
952/** @internal */
953export const scopedDiscard = <X, E, R>(
954 effect: Effect.Effect<X, E, R>
955): Layer.Layer<never, E, Exclude<R, Scope.Scope>> => scopedContext(pipe(effect, core.as(Context.empty())))
956
957/** @internal */
958export const scopedContext = <A, E, R>(

Callers 12

setClockFunction · 0.85
setRandomFunction · 0.85
setRequestBatchingFunction · 0.85
setRequestCachingFunction · 0.85
Layer.tsFile · 0.85
setSchedulerFunction · 0.85
setTracerEnabledFunction · 0.85
setTracerTimingFunction · 0.85
fiberRefLocallyScopedFunction · 0.85

Calls 2

scopedContextFunction · 0.85
pipeFunction · 0.70

Tested by

no test coverage detected