mirror of
https://github.com/ocaml-multicore/eio.git
synced 2025-10-07 00:10:37 -04:00
Cancellation contexts are now only about making things stop promptly, not about reporting errors. That's now handled entirely by the switches. This fixes a problem where an error raised while cancelling an operation would be lost. `Switch.turn_off` is now called `Switch.fail`.