File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ val x: Int = Await.result(combined, 10.seconds) // 05
47
47
48
48
Lines 1 defines an asynchronous method: it returns a ` Future ` .
49
49
50
- Line 3 begins an ` async ` block. During compilation,
50
+ Line 2 begins an ` async ` block. During compilation,
51
51
the contents of this block will be analyzed to identify
52
52
the ` await ` calls, and transformed into non-blocking
53
53
code.
@@ -56,7 +56,7 @@ Control flow will immediately pass to line 5, as the
56
56
computation in the ` async ` block is not executed
57
57
on the caller's thread.
58
58
59
- Line 4 begins by triggering ` slowCalcFuture ` , and then
59
+ Line 3 begins by triggering ` slowCalcFuture ` , and then
60
60
suspending until it has been calculating. Only after it
61
61
has finished, we trigger it again, and suspend again.
62
62
Finally, we add the results and complete ` combined ` , which
You can’t perform that action at this time.
0 commit comments