Replacement for tokio::time::delay_for

I ran across this forum post that suggests using took::time::delay_for.

But that seems to be gone now. What is the replacement for this in the latest version of tokio?

It's tokio::time::sleep on Tokio 1.0.

2 Likes