import * as tsplus_module_1 from "@effect/core/io/Fiber/operations/awaitAll";
import * as tsplus_module_2 from "@effect/core/io/Effect/operations/ensuringChildren";
/**
 * 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 fluent ets/Effect awaitAllChildren
 */

export function awaitAllChildren(self, __tsplusTrace) {
  return tsplus_module_2.ensuringChildren_(self, fibers => tsplus_module_1.awaitAll(fibers, __tsplusTrace), __tsplusTrace);
}
//# sourceMappingURL=awaitAllChildren.mjs.map