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

Function transformEffect

packages/effect/src/Sink.ts:1099–1102  ·  view source on GitHub ↗
(
  self: Sink<A, In, L, E, R>,
  f: (effect: Effect.Effect<End<A, L>, E, R>) => Effect.Effect<End<A2, L2>, E2, R2>
)

Source from the content-addressed store, hash-verified

1097)
1098
1099const transformEffect = <A, In, L, E, R, A2, E2, R2, L2 = never>(
1100 self: Sink<A, In, L, E, R>,
1101 f: (effect: Effect.Effect<End<A, L>, E, R>) => Effect.Effect<End<A2, L2>, E2, R2>
1102): Sink<A2, In, L2, E2, R2> => fromTransform((upstream, scope) => f(self.transform(upstream, scope)))
1103
1104/**
1105 * Transforms the full `End` produced by this sink effectfully.

Callers 1

Sink.tsFile · 0.70

Calls 3

fromTransformFunction · 0.70
transformMethod · 0.65
fFunction · 0.50

Tested by

no test coverage detected