what the difference from the programmer perspective will be between coroutines coming from the project loom compared to kotlin coroutines?
s
streetsofboston
06/28/2019, 1:47 PM
What stood out for me, if i understood it correctly, is that Loom will make all code suspendable. No need to annotate it with
suspend
and such.
d
Dias
06/28/2019, 1:56 PM
oh interesting, does it essentially mean that jvm will launch some sort of global event loop and all method calls will be dispatched by that loop?
s
streetsofboston
06/28/2019, 1:58 PM
Not sure…. it may be even deeper down in the bowels 🙂
I saw a presentation about the concept of it, but it didn’t go into the specifics of the implementation.
l
louiscad
06/28/2019, 6:05 PM
Loop doesn't support cancellation and structured concurrency AFAIK though, something kotlinx.coroutines do. Basically, project Loom is like a Go runtime for JVM threads