]> piware.de Git - learn-rust.git/commitdiff
async-http: Serve requests in parallel in threads
authorMartin Pitt <martin@piware.de>
Fri, 16 Sep 2022 07:03:46 +0000 (09:03 +0200)
committerMartin Pitt <martin@piware.de>
Fri, 16 Sep 2022 07:03:46 +0000 (09:03 +0200)
Use async_std::task::spawn to launch a request in a thread.

Now even synchronous sleep does not block other requests, as long as
they don't exceed the thread pool capacity.


No differences found