Function futures_util::future::pending
source · [−]pub fn pending<T>() -> Pending<T>ⓘNotable traits for Pending<T>impl<T> Future for Pending<T> type Output = T;
Expand description
Creates a future which never resolves, representing a computation that never finishes.
The returned future will forever return Poll::Pending
.
Examples
ⓘ
use futures::future;
let future = future::pending();
let () = future.await;
unreachable!();