[][src]Function futures_micro::prelude::ready

pub fn ready<T>(val: T) -> Ready<T>

Notable traits for Ready<T>

impl<T> Future for Ready<T> type Output = T;

Creates a future that resolves to the provided value.

Examples

use futures_micro::prelude::ready;

assert_eq!(ready(7).await, 7);