Function holochain::prelude::kitsune_p2p::dependencies::kitsune_p2p_types::dependencies::futures::prelude::future::ok
Expand description
Create a future that is immediately ready with a success value.
Examples
use futures::future;
let a = future::ok::<i32, i32>(1);
assert_eq!(a.await, Ok(1));