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

Function transformEffect

packages/effect/src/Sink.ts:1051–1054  ·  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

1049)
1050
1051const transformEffect = <A, In, L, E, R, A2, E2, R2, L2 = never>(
1052 self: Sink<A, In, L, E, R>,
1053 f: (effect: Effect.Effect<End<A, L>, E, R>) => Effect.Effect<End<A2, L2>, E2, R2>
1054): Sink<A2, In, L2, E2, R2> => fromTransform((upstream, scope) => f(self.transform(upstream, scope)))
1055
1056/**
1057 * Transforms the full `End` produced by this sink effectfully.

Callers 1

Sink.tsFile · 0.85

Calls 3

fromTransformFunction · 0.70
transformMethod · 0.65
fFunction · 0.50

Tested by

no test coverage detected