Function bitcoincore_zmq::subscribe_multi_blocking
source · pub fn subscribe_multi_blocking<F: Fn(Result<Message, Error>) -> T, T: Into<Action>>(
endpoints: &[&str],
callback: F
) -> Result<(), Error>
Expand description
Subscribes to multiple ZMQ endpoints and blocks the thread until Action::Stop
is returned by the callback