Module futures_lite::future
source · [−]Expand description
Re-exports
pub use core::future::Future;
Structs
Future for the FutureExt::catch_unwind()
method.
Future for the or()
function and the FutureExt::or()
method.
Future for the poll_once()
function.
Future for the race()
function and the FutureExt::race()
method.
Future for the yield_now()
function.
Traits
Functions
Blocks the current thread on a future.
Returns the result of the future that completes first, preferring future1
if both are ready.
Creates a future that is always pending.
Returns the result of the future that completes first, with no preference if both are ready.
Creates a future that resolves to the provided value.
Joins two fallible futures, waiting for both to complete or one of them to error.
Wakes the current task and returns Poll::Pending
once.
Joins two futures, waiting for both to complete.
Type Definitions
Type alias for Pin<Box<dyn Future<Output = T> + Send + 'static>>
.
Type alias for Pin<Box<dyn Future<Output = T> + 'static>>
.