https://kotlinlang.org logo
#coroutines
Title
# coroutines
p

Paul Woitaschek

10/13/2018, 7:59 PM
Thanks, that works (both)
g

gildor

10/14/2018, 2:20 AM
Better to use yeld or any other suspend function, you can see above what happen if you use pure isActive in a loop: https://kotlinlang.slack.com/archives/C1CFAFJSK/p1539362258000100
isActive just fine, but you should be careful with
while(isActive)
because such code can block thread
2 Views