pub fn pending<T>() -> Pending<T>ⓘNotable traits for Pending<T>impl<T> Future for Pending<T> type Output = T;
impl<T> Future for Pending<T> type Output = T;
创建一个永不解析的 future,表示永不结束的计算。
use std::future; let future = future::pending(); let () = future.await; unreachable!();