[−][src]Function futures_util::future::ready
pub fn ready<T>(t: T) -> Ready<T>ⓘ
Creates a future that is immediately ready with a value.
Examples
use futures::future; let a = future::ready(1); assert_eq!(a.await, 1);
pub fn ready<T>(t: T) -> Ready<T>ⓘ
Creates a future that is immediately ready with a value.
use futures::future; let a = future::ready(1); assert_eq!(a.await, 1);