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.
#![feature(future_readiness_fns)] use core::future; let future = future::pending(); let () = future.await; unreachable!();
© 2010 The Rust Project Developers
Licensed under the Apache License, Version 2.0 or the MIT license, at your option.
https://doc.rust-lang.org/std/future/fn.pending.html