( self: Micro<A, E, R> )
| 3635 | * @category flags |
| 3636 | */ |
| 3637 | export const uninterruptible = <A, E, R>( |
| 3638 | self: Micro<A, E, R> |
| 3639 | ): Micro<A, E, R> => |
| 3640 | withMicroFiber((fiber) => { |
| 3641 | if (!fiber.interruptible) return self |
| 3642 | fiber.interruptible = false |
| 3643 | fiber._stack.push(setInterruptible(true)) |
| 3644 | return self |
| 3645 | }) |
| 3646 | |
| 3647 | const setInterruptible: (interruptible: boolean) => Primitive = makePrimitive({ |
| 3648 | op: "SetInterruptible", |
no outgoing calls
no test coverage detected