Struct gj::io::Timer [] [src]

pub struct Timer;

Methods

impl Timer
[src]

fn after_delay(&self, delay: Duration) -> Promise<()Error>

fn timeout_after<T>(&self, delay: Duration, promise: Promise<T, Error>) -> Promise<T, Error>