/** * Makes an explicit check to see if the fiber has been interrupted, and if * so, performs self-interruption * * @tsplus static effect/core/io/Effect.Ops allowInterrupt */ export const allowInterrupt: Effect = Effect.descriptorWith((descriptor) => descriptor.interrupters.size > 0 ? Effect.interrupt : Effect.unit )