( self: Micro<A, E, R> )
| 3663 | * @category flags |
| 3664 | */ |
| 3665 | export const interruptible = <A, E, R>( |
| 3666 | self: Micro<A, E, R> |
| 3667 | ): Micro<A, E, R> => |
| 3668 | withMicroFiber((fiber) => { |
| 3669 | if (fiber.interruptible) return self |
| 3670 | fiber.interruptible = true |
| 3671 | fiber._stack.push(setInterruptible(false)) |
| 3672 | if (fiber._interrupted) return exitInterrupt |
| 3673 | return self |
| 3674 | }) |
| 3675 | |
| 3676 | /** |
| 3677 | * Wrap the given `Micro` effect in an uninterruptible region, preventing the |
no outgoing calls
no test coverage detected
searching dependent graphs…