Function futures_core::future::ok [−][src]
pub fn ok<T, E>(t: T) -> FutureResult<T, E>
Creates a new future that will immediately resolve successfully to the given value.
Examples
use futures_core::future::*; let future_of_1 = ok::<u32, u32>(1);