@effect-ts/system
Version:
Effect-TS is a zero dependency set of libraries to write highly productive, purely functional TypeScript at scale.
17 lines (14 loc) • 474 B
text/typescript
// ets_tracing: off
import type * as CK from "../../../../Collections/Immutable/Chunk/index.js"
import type * as T from "../../../../Effect/index.js"
import * as SK from "../../Sink/index.js"
import type * as C from "../core.js"
import * as Run from "./run.js"
/**
* Runs the stream and collects all of its elements to a chunk.
*/
export function runCollect<R, E, A>(
self: C.Stream<R, E, A>
): T.Effect<R, E, CK.Chunk<A>> {
return Run.run_(self, SK.collectAll())
}