pub fn delay(&self, duration: Duration) -> Timer {
        let ticks = self.duration_to_ticks(duration);

        let entry = atomic::Entry::new(ticks);
        let handle = self.clone();
        Timer { handle, entry }
    }
/// Returns a future that sleeps for the given duration
Returns a future that sleeps for the given duration
Returns a future that sleeps for the given duration
pub fn delay(&self, duration: Duration) -> Timer {
        let ticks = self.duration_to_ticks(duration);
        let entry = atomic::Entry::new(ticks);
        let handle = self.clone();
        Timer { handle, entry }
    }
pub fn delay ( & self , duration : Duration ) -> Timer { let ticks = self . duration_to_ticks ( duration ) ; let entry = atomic :: Entry :: new ( ticks ) ; let handle = self . clone ( ) ; Timer { handle , entry } }
Returns a future that sleeps for the given duration
Returns a future that sleeps for the given duration
&self
duration
Duration