1.48.0[][src]Function maybe_std::future::pending

pub fn pending<T>() -> Pending<T>

Notable traits for Pending<T>

impl<T> Future for Pending<T> type Output = T;

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

Examples

use core::future;

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