Module future

Module future 

Available on crate feature future only.
Expand description

Async future utilities.

This module re-exports commonly used future traits and types from the core library and the futures crate.

Unlike hbrt::task, this module provides pure composition without relying on an executor.

Structs§

Pending
Creates a future which never resolves, representing a computation that never finishes.
PollFn
A Future that wraps a function returning Poll.
Ready
A future that is immediately ready with a value.

Traits§

Future
A future represents an asynchronous computation, commonly obtained by use of async.
FutureExt
An extension trait for Futures that provides a variety of convenient adapters.
IntoFuture
Conversion into a Future.
TryFuture
A convenience for futures that return Result values that includes a variety of adapters tailored to such futures.
TryFutureExt
Adapters specific to Result-returning futures

Functions§

pending
Creates a future which never resolves, representing a computation that never finishes.
poll_fn
Creates a future that wraps a function returning Poll.
ready
Creates a future that is immediately ready with a value.