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

Function contextWithEffect

packages/effect/src/internal/sink.ts:691–693  ·  view source on GitHub ↗
(
  f: (context: Context.Context<R0>) => Effect.Effect<A, E, R>
)

Source from the content-addressed store, hash-verified

689
690/** @internal */
691export const contextWithEffect = <R0, A, E, R>(
692 f: (context: Context.Context<R0>) => Effect.Effect<A, E, R>
693): Sink.Sink<A, unknown, never, E, R0 | R> => pipe(context<R0>(), mapEffect(f))
694
695/** @internal */
696export const contextWithSink = <R0, A, In, L, E, R>(

Callers

nothing calls this directly

Calls 2

pipeFunction · 0.70
contextFunction · 0.70

Tested by

no test coverage detected