futures_executor

Function block_on_stream

Source
pub fn block_on_stream<S: Stream>(s: S) -> BlockingStream<S> 
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. The default executor for the future is a global ThreadPool.