UNPKG

@effect-ts/system

Version:

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

14 lines (11 loc) 420 B
// ets_tracing: off import type * as T from "../../../../Effect/index.js" import type * as C from "../core.js" import * as Drain from "./drain.js" import * as FromEffect from "./fromEffect.js" /** * Creates a stream that executes the specified effect but emits no elements. */ export function execute<R, E, Z>(effect: T.Effect<R, E, Z>): C.Stream<R, E, never> { return Drain.drain(FromEffect.fromEffect(effect)) }