Skip to main content

spawn_reader

Function spawn_reader 

Source
fn spawn_reader<R: Read + Send + 'static>(
    sender: SyncSender<WidgetProcessEvent>,
    widget_id: String,
    process_id: String,
    stream: ProcessStream,
    reader: R,
)
Expand description

Reads a stream line by line on a background thread and sends each line as an event until the stream closes or the manager is dropped.