@elizarov Just watched you KotlinConf 18 talk which is really awesome. But would you consider to release a course (Coursera or Udemy) to have more proper lessons on Coroutines? Thanks
e
elizarov
10/05/2018, 1:14 PM
It was announced during the keynote. We are doing a specialization with Coursera and it will have a section on coroutines.
👍 5
a
Allan Wang
10/05/2018, 4:42 PM
Are coroutines an effective replacement for anything that launches threads within an executor service?
In other words,
ExecutorService
and
submit
can be replaced completely with a
CoroutineScope
(or global scope) and
launch
correct?
l
louiscad
10/05/2018, 6:10 PM
@Allan Wang Coroutines are about taking callback hells away. When you do multithreading, you often need callbacks. But with coroutines, you keep it sequential, and you also get easy cancellation/error support, with just try/catch/finally
a
Allan Wang
10/05/2018, 6:13 PM
I understand the callback hell part, but in terms of just general runnables or launching, would coroutines effectively replace threads as well? Even if there are no benefits, are there any downsides? If not, using coroutines would help in the future if I need to further split my jobs