mirror of
https://github.com/alrayyes/wiki.git
synced 2024-11-22 11:36:23 +00:00
533 B
533 B
date | id | title |
---|---|---|
2020-11-20 | 048ee80a-c058-4a41-8087-9ce3649302ba | 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!();