/** * Schedules the output of the stream using the provided `schedule` and emits * its output at the end (if `schedule` is finite). * * @tsplus static effect/core/stream/Stream.Aspects scheduleEither * @tsplus pipeable effect/core/stream/Stream scheduleEither */ export function scheduleEither(schedule: Schedule) { return (self: Stream): Stream> => self.scheduleWith( schedule, (a) => Either.rightW(a), (b) => Either.leftW(b) ) }