@effect-ts/system
Version:
Effect-TS is a zero dependency set of libraries to write highly productive, purely functional TypeScript at scale.
13 lines (12 loc) • 454 B
JavaScript
// ets_tracing: off
import * as CK from "../../../../Collections/Immutable/Chunk/index.mjs";
import * as T from "../../../../Effect/index.mjs";
import * as CH from "../../Channel/index.mjs";
import * as C from "../core.mjs";
/**
* Creates a stream from an effect producing a value of type `A`
*/
export function effect(self) {
return new C.Stream(CH.unwrap(T.fold_(self, CH.fail, x => CH.write(CK.single(x)))));
}
//# sourceMappingURL=effect.mjs.map