/** * Repeats the entire stream using the specified schedule. The stream will * execute normally, and then repeat again according to the provided schedule. * The schedule output will be emitted at the end of each repetition. * * @tsplus static effect/core/stream/Stream.Aspects repeatEither * @tsplus pipeable effect/core/stream/Stream repeatEither */ export function repeatEither( schedule: Schedule ) { return (self: Stream): Stream> => self.repeatWith( schedule, (a) => Either.rightW(a), (b) => Either.leftW(b) ) }