pub fn deadline<T: Into<Millis>>(dur: T) -> Deadline ⓘ
Waits until duration has elapsed.
duration
This is similar to sleep future, but in case of 0 duration deadline future never completes.
sleep
0