Skip to content

Commit

Permalink
Merge pull request #1070 from ChocolateLoverRaj/patch-1
Browse files Browse the repository at this point in the history
Fix typo: at a time instead of at time
  • Loading branch information
Fishrock123 committed Jan 4, 2024
2 parents 8fea050 + 2e8c579 commit 02738ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/src/tutorial/receiving_messages.md
Expand Up @@ -118,7 +118,7 @@ handle.await?
The `.await` waits until the client finishes, and `?` propagates the result.

There are two problems with this solution however!
*First*, because we immediately await the client, we can only handle one client at time, and that completely defeats the purpose of async!
*First*, because we immediately await the client, we can only handle one client at a time, and that completely defeats the purpose of async!
*Second*, if a client encounters an IO error, the whole server immediately exits.
That is, a flaky internet connection of one peer brings down the whole chat room!

Expand Down

0 comments on commit 02738ca

Please sign in to comment.