[−][src]Function futures::future::empty
pub fn empty<T>() -> Empty<T>
Creates a future which never resolves, representing a computation that never finishes.
The returned future will forever return [Poll::Pending
].
Examples
ⓘThis example is not tested
#![feature(async_await, await_macro, futures_api)] use futures::future; let future = future::empty(); let () = await!(future); unreachable!();