UNPKG

@effect-ts/system

Version:

Effect-TS is a zero dependency set of libraries to write highly productive, purely functional TypeScript at scale.

11 lines (10 loc) 305 B
// ets_tracing: off import * as CH from "../Channel/index.mjs"; import * as C from "./core.mjs"; /** * Returns a lazily constructed sink that may require effects for its creation. */ export function suspend(f) { return new C.Sink(CH.suspend(() => f().channel)); } //# sourceMappingURL=suspend.mjs.map