/** * Runs the stream and collects all of its elements to a chunk. * * @tsplus getter effect/core/stream/Stream runCollect * @tsplus static effect/core/stream/Stream.Aspects runCollect */ export function runCollect( self: Stream ): Effect> { return self.run(Sink.collectAll()) }