devela::all

Function future_pending

1.48.0 · Source
pub fn future_pending<T>() -> Pending<T> 
Expand description

core Creates a FuturePending future.

Re-exported from core::future:: pendingfuture_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!();