3 ms·
Tokyo::sleep is async
by sour-taste 2y ago
Tokyo::sleep is async
- davidatbu 2y agoI 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_.