/** * Like `aggregateWithinEither`, but only returns the `Right` results. * * @param sink Used for the aggregation * @param schedule Used for signalling for when to stop the aggregation * * @tsplus static effect/core/stream/Stream.Aspects aggregateWithin * @tsplus pipeable effect/core/stream/Stream aggregateWithin */ export function aggregateWithin( sink: Sink, schedule: Schedule, C> ) { return (self: Stream): Stream => self.aggregateWithinEither(sink, schedule).collectRight }