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) 475 B
// ets_tracing: off import * as Fiber from "../Fiber/index.js" import type { Effect } from "./effect.js" import { ensuringChildren_ } from "./ensuringChildren.js" /** * Returns a new effect that will not succeed with its value before first * waiting for the end of all child fibers forked by the effect. */ export function awaitAllChildren<R, E, A>( fa: Effect<R, E, A>, __trace?: string ): Effect<R, E, A> { return ensuringChildren_(fa, Fiber.waitAll, __trace) }