collect_examples

Function collect_examples 

Source
pub async fn collect_examples<Reader: Read>(
    reader_factory: Pin<Box<dyn Stream<Item = Result<ReaderContext<Reader>, String>>>>,
    parser_settings: ParserSettings,
) -> Result<Pin<Box<dyn Stream<Item = Example>>>, String>
Expand description

Transform a stream of file readers into a stream of examples Note: this will exhaust all readers before starting the stream of examples