import * as tsplus_module_1 from "@tsplus/stdlib/collections/HashSet/empty";
import * as tsplus_module_2 from "@effect/core/io/Cause/definition";
import * as tsplus_module_3 from "@tsplus/stdlib/collections/HashSet/add";
import * as tsplus_module_4 from "@tsplus/stdlib/data/Maybe/definition";
import * as tsplus_module_5 from "@effect/core/io/Cause/operations/foldLeft";
/**
 * Returns a set of interruptors, fibers that interrupted the fiber described
 * by this `Cause`.
 *
 * @tsplus getter ets/Cause interruptors
 */

export function interruptors(self) {
  return tsplus_module_5.foldLeft_(self, tsplus_module_1.empty(), (acc, curr) => tsplus_module_2.isInterruptType(curr) ? tsplus_module_4.some(tsplus_module_3.add_(acc, curr.fiberId)) : tsplus_module_4.some(acc));
}
//# sourceMappingURL=interruptors.mjs.map