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
4747
4848Lines 1 defines an asynchronous method: it returns a ` Future ` .
4949
50- Line 3 begins an ` async ` block. During compilation,
50+ Line 2 begins an ` async ` block. During compilation,
5151the contents of this block will be analyzed to identify
5252the ` await ` calls, and transformed into non-blocking
5353code.
@@ -56,7 +56,7 @@ Control flow will immediately pass to line 5, as the
5656computation in the ` async ` block is not executed
5757on the caller's thread.
5858
59- Line 4 begins by triggering ` slowCalcFuture ` , and then
59+ Line 3 begins by triggering ` slowCalcFuture ` , and then
6060suspending until it has been calculating. Only after it
6161has finished, we trigger it again, and suspend again.
6262Finally, we add the results and complete ` combined ` , which
You can’t perform that action at this time.
0 commit comments