-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
changed async example to use spawn_blocking
The correct way to call blocking code in tokio is through the spawn_blocking mechanism to prevent all threads from being exhausted to perform async operations. See below for details. look [here](https://users.rust-lang.org/t/nano-get-minimalistic-http-s-get-crate/37264/2?u=rapidclock)
- Loading branch information
1 parent
6ed05ec
commit e92d9b5
Showing
1 changed file
with
5 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters