[−][src]Module futures_lite::future
Combinators for the Future
trait.
Examples
use futures_lite::*; for step in 0..3 { println!("step {}", step); // Give other tasks a chance to run. future::yield_now().await; }
Re-exports
pub use std::future::Future; |
Structs
Pending | Future for the |
PollFn | Future for the |
PollOnce | Future for the |
Ready | Future for the |
YieldNow | Future for the |
Functions
pending | Creates a future that is always pending. |
poll_fn | Creates a future from a function returning |
poll_once | Polls a future just once and returns an |
ready | Creates a future that resolves to the provided value. |
yield_now | Wakes the current task and returns |