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

Function provideScope

packages/effect/src/unstable/workflow/Workflow.ts:783–786  ·  view source on GitHub ↗
(
  effect: Effect.Effect<A, E, R>
)

Source from the content-addressed store, hash-verified

781 * @since 4.0.0
782 */
783export const provideScope = <A, E, R>(
784 effect: Effect.Effect<A, E, R>
785): Effect.Effect<A, E, Exclude<R, Scope.Scope> | WorkflowInstance> =>
786 Effect.flatMap(scope, (scope) => Scope.provide(effect, scope))
787
788/**
789 * Adds an exit finalizer to the current workflow scope, preserving the

Callers 1

effect.tsFile · 0.85

Calls 1

provideMethod · 0.45

Tested by

no test coverage detected