Function ic_web3_rs::block_on_stream
pub fn block_on_stream<S>(stream: S) -> BlockingStream<S>where
S: Stream + Unpin,
Expand description
Turn a stream into a blocking iterator.
When next
is called on the resulting BlockingStream
, the caller
will be blocked until the next element of the Stream
becomes available.