futures_lite::future

Function pending

Source
pub fn pending<T>() -> Pending<T> 
Expand description

Creates a future that is always pending.

§Examples

use futures_lite::future;

future::pending::<()>().await;
unreachable!();