[][src]Function ufut::pending

pub fn pending<T>() -> Pending<T>

Notable traits for Pending<T>

impl<T> Future for Pending<T> type Output = T;

Creates a future that is always pending.

Examples

use futures_micro::pending;

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