Struct single_executor::SleepFutureRunner[][src]

pub struct SleepFutureRunner<Q, CS> where
    CS: TryThreadSpawner<()>, 
{ /* fields omitted */ }
Expand description

Runs asynchronous sleep functions by launching a separate handler thread. Each new instance of this spawns a thread.

Implementations

Tries to create a new SleepFutureRunner by launching a thread.

Create a new SleepFutureRunner by launching a thread. Requires thread spawning to be infallible.

Creates a future that sleeps for a given duration from this call.

Creates a future that sleeps until a given CS::InstantType.

Runs a given future with a timeout.

Runs a given future with a timeout. Allows for a should stop parameter.

Runs a given future with a timeout.

Runs a given future with a timeout. Allows for a should stop parameter.

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.