News for hackers. Stuff that matters.
Re:How much memory do you need in 2024 to run 1M concurrent ... by ch33zer on Thursday November 28, 2024 @11:26PM (#42270786)
Tokyo::sleep is async
Re:How much memory do you need in 2024 to run 1M concurrent ... by davidatbu on Thursday November 28, 2024 @11:43PM (#42270876)
I think the points people made in other replies make sense, but "Tokio::sleep is async" by itself is not enough of an explanation. If it were the case that `Tokio::sleep()` tracked the moment `.await` was called as it's start time, I believe it would indeed take 10x1,000,000 seconds, _even if it's async_.