Skip to content

Commit 88811c2

Browse files
committed
Expand explanation of 'await' slightly.
1 parent 51e6d63 commit 88811c2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

TSPL.docc/LanguageGuide/Concurrency.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,8 @@ Inside an asynchronous method,
157157
the flow of execution is suspended *only* when you call another asynchronous method ---
158158
suspension is never implicit or preemptive ---
159159
which means every possible suspension point is marked with `await`.
160+
Marking all of the possible suspension points in your code
161+
helps make concurrent code easier to read and reason about.
160162

161163
For example,
162164
the code below fetches the names of all the pictures in a gallery

0 commit comments

Comments
 (0)