https://kotlinlang.org logo
#kvision
Title
# kvision
r

Robert Jaros

08/26/2021, 9:06 AM
Just had no time to fix all the examples.
t

Tomas Kormanak

08/26/2021, 9:14 AM
No worries, I am asking because I am not so confident with my understanding of correct coroutine context/scope usage.
All examples are focused on Android and it's hard to find any for KotlinJS
r

Robert Jaros

08/26/2021, 9:18 AM
val scope = CoroutineScope(window.asCoroutineDispatcher()) + SupervisorJob()
this is what I'm using currently internally in KVision
t

Tomas Kormanak

08/26/2021, 9:19 AM
so you create a new scope in every component?
r

Robert Jaros

08/26/2021, 9:20 AM
No, I'm using this as a global variable