import * as tsplus_module_1 from "@effect/core/io/Fiber/operations/interruptAllAs";
import * as tsplus_module_2 from "@effect/core/io/Effect/operations/fiberId";
import * as tsplus_module_3 from "@effect/core/io/Effect/operations/flatMap";
/**
 * Interrupts all fibers, awaiting their interruption.
 *
 * @tsplus static ets/Fiber/Ops interruptAll
 */

export function interruptAll(fibers, __tsplusTrace) {
  return tsplus_module_3.flatMap_(tsplus_module_2.fiberId, fiberId => tsplus_module_1.interruptAllAs(fibers, fiberId, __tsplusTrace), __tsplusTrace);
}
//# sourceMappingURL=interruptAll.mjs.map