Concurrency and Exceptions
Eric Kolotyluk
eric at kolotyluk.net
Tue Nov 30 16:36:40 UTC 2021
In my documentation I want to make the statement
In concurrent frameworks, it was not safe to throw Exceptions because the
> JVM could not manage this.
>
My sense is that Project Loom addresses this and fixes it somewhat, but I
don't want to miss-state the problem Loom attempts to solve.
*Is it the JVM, or simply the Java Language/Libraries that could not
support safe Exception Handling in Concurrent scenarios?*
Up until now, this led to a Functional approach of returning composite
results, such as Scala Option, Either, Try, etc. to avoid throwing
Exceptions.
I understand that in Kotlin Coroutines, it is safe to throw/catch
exceptions in concurrent code, but I have never really tried this.
Cheers, Eric
More information about the loom-dev
mailing list