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

streetsofboston

06/02/2020, 1:02 PM
Very nicely written, but you should emphasize that the 'proper way' is indeed only proper way and that the 'interesting way' (having it run on the Main dispatcher) should never be done in actual code 😀. You can still
yield()
when running in the Default dispatcher, enabling early handling of cancellation.
l

Lukas Lechner

06/02/2020, 3:02 PM
Thank you! Yes, I also had the feeling that i did not emphasize enough that the interesting way should not be used. Will add another sentence or two 😉
💯 2
4 Views