futures_lite::future
pub fn ready<T>(val: T) -> Ready<T>ⓘImportant traits for Ready<T>impl<T> Future for Ready<T> type Output = T;
impl<T> Future for Ready<T> type Output = T;
Creates a future that resolves to the provided value.
use futures_lite::*; assert_eq!(future::ready(7).await, 7);