/** * Returns a new schedule that collects the outputs of this one into a chunk. * * @tsplus getter effect/core/io/Schedule collectAll */ export function collectAllFrom( self: Schedule ): Schedule], Env, In, Chunk> { return self.fold(Chunk.empty(), (xs, x) => xs.append(x)) }