[][src]Function capnp_rpc::new_promise_client

pub fn new_promise_client<T, F>(client_promise: F) -> T where
    T: FromClientHook,
    F: Future<Output = Result<Client, Error>>,
    F: 'static + Unpin

Converts a promise for a client into a client that queues up any calls that arrive before the promise resolves.