pub fn future_pending<T>() -> Pending<T> ⓘ
Expand description
core
Creates a FuturePending
future.
Re-exported from core
::future::
pending
→future_pending
.
Creates a future which never resolves, representing a computation that never finishes.
§Examples
use std::future;
let future = future::pending();
let () = future.await;
unreachable!();