Function subscribe_single_blocking

Source
pub fn subscribe_single_blocking<F, B>(
    endpoint: &str,
    callback: F,
) -> Result<ControlFlow<B, Infallible>, Error>
where F: Fn(Result<Message, Error>) -> ControlFlow<B>,
👎Deprecated since 1.3.2: Use subscribe_blocking. This function has no performance benefit over subscribe_multi_blocking anymore.
Expand description

Subscribes to a single ZMQ endpoint and blocks the thread until ControlFlow::Break is returned by the callback.