Join Slack
Powered by
Is it safe to get coroutine scope inside a widget ...
# kvision
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>()
Ivan Pavlov
11/03/2021, 11:33 AM
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
6
Views
Open in Slack
Previous
Next