[][src]Module std::future

🔬 This is a nightly-only experimental API. (futures_api #50547)

futures in libcore are unstable

Asynchronous values.

Structs

FutureObj [
Experimental
]

A custom trait object for polling futures, roughly akin to Box<dyn Future<Output = T> + Send + 'a>.

LocalFutureObj [
Experimental
]

A custom trait object for polling futures, roughly akin to Box<dyn Future<Output = T> + 'a>.

Traits

Future [
Experimental
]

A future represents an asychronous computation.

UnsafeFutureObj [
Experimental
]

A custom implementation of a future trait object for FutureObj, providing a hand-rolled vtable.

Functions

from_generator [
Experimental
]

Wrap a future in a generator.

get_task_cx [
Experimental
]

Retrieves the thread-local task context used by async/await futures.

poll_in_task_cx [
Experimental
]

Polls a future in the current thread-local task context.

set_task_cx [
Experimental
]

Sets the thread-local task context used by async/await futures.