Y
Hacker News
new
|
ask
|
show
|
jobs
by
fuzzybear3965
564 days ago
Yeah, I think you're wrong. It should only take ~10s. tokio::time::sleep records the time it was called before returning the future [1]. So, all 1 million tasks should be stamped with +/- the same time (within a few milliseconds).
[1]:
https://docs.rs/tokio/1.41.1/src/tokio/time/sleep.rs.html#12...
1 comments
davidatbu
564 days ago
This makes total sense!
link