Skip to main content

collect_data

Function collect_data 

Source
pub async fn collect_data<E, S>(stream: S) -> Result<Vec<E>, ClientError>
where S: Stream<Item = Result<ClientEvent<E>, ClientError>> + Unpin,
Expand description

Drive a typed stream to completion, collecting every data event.

The shape a unary method wants: menger’s finite calls (list, get, blockers, …) emit N data items then done, and the caller wants the Vec. Progress events are discarded; the first error wins.