Function holochain::prelude::dependencies::kitsune_p2p_types::dependencies::futures::prelude::future::ready
Expand description
Creates a future that is immediately ready with a value.
Examples
use futures::future;
let a = future::ready(1);
assert_eq!(a.await, 1);