From: Martin Pitt Date: Fri, 16 Sep 2022 07:03:46 +0000 (+0200) Subject: async-http: Serve requests in parallel in threads X-Git-Url: https://piware.de/gitweb/?p=learn-rust.git;a=commitdiff_plain;h=c4531591e9396d86e57f32badcd8dd05edaafbfe;hp=c4531591e9396d86e57f32badcd8dd05edaafbfe async-http: Serve requests in parallel in threads 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. ---