dequeue

Macro dequeue 

Source
macro_rules! dequeue {
    ($receiver:expr, $pattern:path) => { ... };
}
Expand description

Macro to indefinitely await a channel Receiver<pb::KaspadMessage>::recv call and expect a specific payload type (without a timeout). Usage:

let res = dequeue!(receiver, Payload::Verack)