[][src]Function geng_core::prelude::futures::future::ready

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

Important traits for Ready<T>

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

Create a future that is immediately ready with a value.

Examples

use futures::future;

let a = future::ready(1);
assert_eq!(a.await, 1);