Reading the coroutine casual description, I’m stil...
# random
c
Reading the coroutine casual description, I’m still a bit unsure about this:
we can see that this code is the same as above, only more readable.
I’m worried that this code only looks more readable because it’s less indented, but under the cover, a lot of magic is taking place with suspension/resumption of coroutines. The callback-based example is more indented but is a lot more straightforward in its intent. Plus, a lot of the callback hell can be mitigated by flatMapping things along.
👌 2