diff --git a/doc/design/race.adoc b/doc/design/race.adoc index 89982d92..92b5e06c 100644 --- a/doc/design/race.adoc +++ b/doc/design/race.adoc @@ -1,5 +1,5 @@ [#design:race] -== Select +== Race The most important synchronization mechanism is the `race` function. @@ -33,12 +33,12 @@ cobalt::promise p() } ---- -The `race` must however internally wait for all awaitable to complete +The `race` must however internally wait for all awaitable to complete once it initiates to `co_await`. -Therefor, once the first <> completes, +Therefore, once the first <> completes, it tries to <> the rest, and if that fails cancels them. -`race` is the preferred way to trigger cancellations, e.g: +`race` is the preferred way to trigger cancellations, e.g.: [source,cpp] ----