cedric
01/20/2017, 8:02 PMwe 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.