(
self: Stream<A, E, R>,
f: (pull: Pull.Pull<Arr.NonEmptyReadonlyArray<A>, E, void>, scope: Scope.Scope) => Effect.Effect<
Pull.Pull<Arr.NonEmptyReadonlyArray<B>, E2, void, R2>,
EX,
RX
>
)
| 622 | * @since 4.0.0 |
| 623 | */ |
| 624 | export const transformPull = <A, E, R, B, E2, R2, EX, RX>( |
| 625 | self: Stream<A, E, R>, |
| 626 | f: (pull: Pull.Pull<Arr.NonEmptyReadonlyArray<A>, E, void>, scope: Scope.Scope) => Effect.Effect< |
| 627 | Pull.Pull<Arr.NonEmptyReadonlyArray<B>, E2, void, R2>, |
| 628 | EX, |
| 629 | RX |
| 630 | > |
| 631 | ): Stream<B, EX | Pull.ExcludeDone<E2>, R | R2 | RX> => |
| 632 | fromChannel( |
| 633 | Channel.fromTransform((_, scope) => |
| 634 | Effect.flatMap(Channel.toPullScoped(self.channel, scope), (pull) => f(pull as any, scope)) |
| 635 | ) |
| 636 | ) |
| 637 | |
| 638 | /** |
| 639 | * Transforms a stream by effectfully transforming its pull effect. |
no test coverage detected