Hello all,
I am trying to collect your opinions. Do you think there is a sense in using the web workers in Kotlin/JS, with Kotlin coroutines at your disposal?
s
Svyatoslav Kuzmich [JB]
03/11/2019, 8:33 PM
Since coroutines are single-threaded, you do want to use web workers when you need parallel computations.
Svyatoslav Kuzmich [JB]
03/11/2019, 8:34 PM
But I would imagine these cases are rare for typical webapps
g
GarouDan
03/11/2019, 9:25 PM
I didn’t use coroutines in production for js, but I would go with kotlin coroutines instead of webworkers, it is far more suitable and a lot of powerfull 😃
GarouDan
03/11/2019, 9:25 PM
I’m using in jvm and I’m very happy 😃
😃 1
g
gildor
03/11/2019, 11:28 PM
Webworkers and coroutines on JS have different use cases and I do not understand how one may compare them
You just cannot use raw coroutines to do background tasks, only to communicate with existing asynchronous APIs