Struct gjio::Timer [] [src]

pub struct Timer { /* fields omitted */ }

Allows scheduling of timeouts.

Methods

impl Timer
[src]

Returns a promise that will be fulfilled after the given delay.

Wraps the given promise in a timeout. If the original promise is not completed within that time, it is cancelled.

Trait Implementations

impl Clone for Timer
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more