Re:A categorized list of all Java and JVM features since JDK...
by DaiPlusPlus on Friday April 02, 2021 @04:46PM
(#26675791)
> Are C# promises/whatever cancellable?
Yes, but it's opt-in (it requires the author of the async method to add a `CancellationToken` parameter and to respect `IsCancellationRequested`).
But, as an "end user", the exception thing drives me absolutely nuts. It wouldn't be nearly as bad if Kotlin either didn't use exceptions for ALL error handling, or even if it had checked exceptions so that "normal" errors would be, mentally, separate from fatal errors and/or coroutine cancellation.