https://kotlinlang.org logo
i

Ivan Pavlov

11/03/2021, 11:22 AM
Is it safe to get coroutine scope inside a widget this way?
Copy code
val scope = kvscope.unsafeCast<CoroutineScope>()
Followed source code and found that it is initialized internally in
initWidgetScope
function, so it is not
r

Robert Jaros

11/03/2021, 11:58 AM
It's not. The scope is initialized only when needed.
i

Ivan Pavlov

11/03/2021, 11:59 AM
I see, thanks
5 Views