I'm on the fence about whether I should use CancellationError as the standard way to model cancellation. It's incompatible with typed throws, and it's not really integral to the language. It's an ad-hoc error Task.checkCancellation throws, and that's about it.

0

If you have a fediverse account, you can quote this note from your own instance. Search https://mastodon.social/users/a_grebenyuk/statuses/115917483893238087 on your instance and quote it. (Note that quoting is not supported in Mastodon.)