Loading lesson…
Level 1 · Apprentice0 XP
Write async code that reads top to bottom, and cannot leak work.
Step 1 / 5
ProblemLoad a user, then their orders, then show them. With callbacks each step nests inside the last, errors are handled in three places and cancelling is hard.
← → step
Before this: Lambdas with receivers and DSLs
🛠️ Your turn
Reading is not the skill, doing is. Try for ten minutes before you open the hint. Getting stuck first is what makes the solution stick.
1.Write two suspend functions that each delay (400 ms and 900 ms) and return a string. Call them one after the other and measure the time, then in parallel with async inside coroutineScope and measure again.