/** * 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. * * @tsplus getter effect/core/io/Effect awaitAllChildren */ export function awaitAllChildren(self: Effect): Effect { return self.ensuringChildren((fibers) => Fiber.awaitAll(fibers)) }