ntex_util::time

Function deadline

source
pub fn deadline<T: Into<Millis>>(dur: T) -> Deadline 
Expand description

Waits until duration has elapsed.

This is similar to sleep future, but in case of 0 duration deadline future never completes.