UNPKG

@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) 487 B
// ets_tracing: off import type * as CK from "../../../../Collections/Immutable/Chunk/index.js" import * as T from "../../../../Effect/index.js" import * as CH from "../../Channel/index.js" import * as C from "../core.js" /** * Creates a stream from a `Chunk` of values * * @param c a chunk of values * @return a finite stream of values */ export function fromChunkWith<O>(c: () => CK.Chunk<O>): C.UIO<O> { return new C.Stream(CH.unwrap(T.succeedWith(() => CH.writeWith(c)))) }