/** * Returns a new channel, which is the same as this one, except the terminal * value of the returned channel is created by applying the specified * effectful function to the terminal value of this channel. * * @tsplus static effect/core/stream/Channel.Aspects mapEffect * @tsplus pipeable effect/core/stream/Channel mapEffect */ export function mapEffect< Env1, OutErr1, OutDone, OutDone1 >(f: (o: OutDone) => Effect) { return ( self: Channel ): Channel => self.flatMap((z) => Channel.fromEffect(f(z))) }