import * as tsplus_module_1 from "@effect/core/io/Fiber/operations/collectAll";
import * as tsplus_module_2 from "@effect/core/io/Effect/operations/fork";
import * as tsplus_module_3 from "@effect/core/io/Effect/operations/excl-forEach";
import * as tsplus_module_4 from "@effect/core/io/Effect/operations/map";
/**
 * Returns an effect that forks all of the specified values, and returns a
 * composite fiber that produces a list of their results, in order.
 *
 * @tsplus static ets/Effect/Ops forkAll
 */

export function forkAll(effects, __tsplusTrace) {
  return tsplus_module_4.map_(tsplus_module_3.forEach(() => effects, effect => tsplus_module_2.fork(effect, __tsplusTrace), __tsplusTrace), chunk => tsplus_module_1.collectAll(chunk), __tsplusTrace);
}
//# sourceMappingURL=forkAll.mjs.map