Merge pull request #1272 from Luv-Ray/main-1

Update web-server.md
pull/1293/head
Sunface 1 year ago committed by GitHub
commit f7a1c1bb6c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -134,6 +134,7 @@ async fn main() {
**上面的代码虽然已经是异步的,实际上它还无法并发**,原因我们后面会解释,先来模拟一下慢请求:
```rust
use std::time::Duration;
use async_std::task;
async fn handle_connection(mut stream: TcpStream) {

Loading…
Cancel
Save