async fn collect_and_call<R, T, F, Fut>(
rx: &mut Receiver<Vec<T>>,
f: F,
) -> Result<R, Status>
Expand description
Use items collected from the broadcast receiver for an async function call.
Handles the boilerplate of managing a receiver of a broadcast channel. If receiver is lagged at any time (data is lost) an error is returned.