kvarn::prelude::utils::prelude::compact_str::core::future

Function pending

1.48.0 · source
pub fn pending<T>() -> Pending<T> 
Expand description

Creates a future which never resolves, representing a computation that never finishes.

§Examples

use std::future;

let future = future::pending();
let () = future.await;
unreachable!();