| use std::task::{Context, Poll}; |
| /// Future for the [`pending()`] function. |
| #[must_use = "futures do nothing unless you `.await` or poll them"] |
| _data: marker::PhantomData<T>, |
| /// Creates a future which never resolves, representing a computation that never |
| /// The returned future will forever return [`Poll::Pending`]. |
| /// future::pending().await; |
| pub async fn pending() -> ! { |
| _data: marker::PhantomData, |
| impl<T> Future for Pending<T> { |
| fn poll(self: Pin<&mut Self>, _: &mut Context<'_>) -> Poll<T> { |
| impl<T> Unpin for Pending<T> {} |