Skip to main content

drive_stream

Function drive_stream 

Source
pub async fn drive_stream(
    renderer: Box<dyn OutputRenderer>,
    events: BoxStream<'static, BuildEvent>,
)
Expand description

Drive a renderer from a Stream of events until it ends or a BuildEnd is seen.

The hm-exec backend handle yields events as a BoxStream<'static, BuildEvent>; this function is the counterpart to drive for that case.