[][src]Function futures_util::future::pending

Important traits for Pending<T>
pub fn pending<T>() -> Pending<T>

Creates a future which never resolves, representing a computation that never finishes.

The returned future will forever return Poll::Pending.

Examples

This example is not tested
use futures::future;

let future = future::pending();
let () = future.await;
unreachable!();