Module future

Source

Structs§

TimeoutError
An error returned when a future times out.

Traits§

Future
A future represents an asynchronous computation obtained by use of async.
IntoFuture
Convert a type into a Future.

Functions§

pending
Never resolves to a value.
poll_fn
Creates a new future wrapping around a function returning Poll.
ready
Resolves to the provided value.
timeout
Awaits a future or times out after a duration of time.