MCPcopy Create free account
hub / github.com/effect-app/libs / transformEffect

Function transformEffect

repos/effect/packages/effect/src/Sink.ts:1019–1022  ·  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

1017 2,
1018 <A, In, L, E, R, In0, E2, R2>(
1019 self: Sink<A, In, L, E, R>,
1020 f: (input: Arr.NonEmptyReadonlyArray<In0>) => Effect.Effect<Arr.NonEmptyReadonlyArray<In>, E2, R2>
1021 ): Sink<A, In0, L, E | E2, R | R2> =>
1022 fromTransform((upstream, scope) =>
1023 self.transform(
1024 Effect.flatMap(upstream, f) as any,
1025 scope

Callers 1

Sink.tsFile · 0.85

Calls 3

fromTransformFunction · 0.70
transformMethod · 0.65
fFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…