pub async fn ready<T>(val: T) -> TExpand description
Resolves to the provided value.
This function is an async version of std::convert::identity.
ยงExamples
use async_std::future;
assert_eq!(future::ready(10).await, 10);pub async fn ready<T>(val: T) -> TResolves to the provided value.
This function is an async version of std::convert::identity.
use async_std::future;
assert_eq!(future::ready(10).await, 10);