2
0
Fork 1
mirror of https://github.com/async-rs/async-std.git synced 2025-02-20 11:19:46 +00:00

Merge pull request from ChocolateLoverRaj/patch-1

Fix typo: at a time instead of at time
This commit is contained in:
Jeremiah Senkpiel 2024-01-04 11:57:14 -08:00 committed by GitHub
commit 02738cad17
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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!