/** * Returns a set of interruptors, fibers that interrupted the fiber described * by this `Cause`. * * @tsplus getter effect/core/io/Cause interruptors */ export function interruptors(self: Cause): HashSet { return self.foldLeft( HashSet.empty(), (acc, curr) => curr.isInterruptType() ? Maybe.some(acc.add(curr.fiberId)) : Maybe.some(acc) ) }