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

Function scopedEffect

packages/effect/src/internal/fiberRuntime.ts:2878–2879  ·  view source on GitHub ↗
(effect: Effect.Effect<A, E, R>)

Source from the content-addressed store, hash-verified

2876
2877/* @internal */
2878export const scopedEffect = <A, E, R>(effect: Effect.Effect<A, E, R>): Effect.Effect<A, E, Exclude<R, Scope.Scope>> =>
2879 core.flatMap(scopeMake(), (scope) => scopeUse(effect, scope))
2880
2881/* @internal */
2882export const sequentialFinalizers = <A, E, R>(self: Effect.Effect<A, E, R>): Effect.Effect<A, E, R> =>

Callers

nothing calls this directly

Calls 1

scopeMakeFunction · 0.85

Tested by

no test coverage detected