3 ms·
> Coroutines are much less coloured than async await programming though since functions returns resolved types directly instead of futures Only because the com
by ohgodplsno 5y ago
> Coroutines are much less coloured than async await programming though since functions returns resolved types directly instead of futures
Only because the compiler does its magic behind the scenes and transforms it into bytecode that takes a lambda with a continuation. Try calling a suspend function from java or starting a job and surprise, it's continuations all the way down
- SemanticStrengh 5y agoyes interfacing with java is generally made via RxJava and reactor. Interfacing is easy but yes nobody wants to use rxjava and reactor in the first place.. I wonder wether loom will enable easier interop and make the magic work from java side POV