Radish alpha
r
rad:z4D5UCArafTzTQpDZNQRuqswh3ury
Radicle desktop app
Radicle
Git
Use `tokio::time::sleep` instead of blocking threads
Merged did:key:z6MkkfM3...sVz5 opened 1 year ago

Great explanation by @LarsWirzenius on the why

Async code in Rust runs in one or more threads. Usually thereโ€™s a small number of threads that are multiplexed between different async functions. The async executor chooses what threads to use and which thread runs which async code. If the async code takes a long time, such as by calling std::thread::sleep, the whole thread stops doing anything else, and then no other async code runs in that thread, either.

check

๐Ÿ‘‰ Workflow runs ๐Ÿ‘‰ Branch on GitHub

did:key:z6MkkfM3...sVz5 opened with revision e243bef2 on base 0693f4f8 +4 -2 1 year ago

Great explanation by @LarsWirzenius on the why

Async code in Rust runs in one or more threads. Usually thereโ€™s a small number of threads that are multiplexed between different async functions. The async executor chooses what threads to use and which thread runs which async code. If the async code takes a long time, such as by calling std::thread::sleep, the whole thread stops doing anything else, and then no other async code runs in that thread, either.

check

๐Ÿ‘‰ Workflow runs ๐Ÿ‘‰ Branch on GitHub

rudolfs accepted 1 year ago
rudolfs merged revision e243bef2 at e0323e34 1 year ago