Function futures_lite::future::ready [−][src]
pub fn ready<T>(val: T) -> Ready<T>ⓘ
Creates a future that resolves to the provided value.
Examples
use futures_lite::future; assert_eq!(future::ready(7).await, 7);
pub fn ready<T>(val: T) -> Ready<T>ⓘ
Creates a future that resolves to the provided value.
use futures_lite::future; assert_eq!(future::ready(7).await, 7);