profileRyan KesPGP keyI build stuffEmailGithubTwitterLast.fmMastodonMatrix

pending

Description

pending1 creates a future which never resovles, representing a computation that never finishes.

Declaration

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

Notable traits

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

Examples

use core::future;

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

Footnotes