pub fn wait_while_run_active(
n_errors: u32,
interval: Duration,
n_events_exp: u32,
data_type: &DataType,
socket: &Socket,
) -> Vec<RBEvent>
Expand description
Wait as long as a run is active. This call blocks the current thread until no run is active anymore.
Check the trigger enabled register periodically to find out whether a run is active or not.
if n_errors is reached, decide the run to be inactive
§Arguments
- n_errors : Unforgiveable number of errors when querying the trigger status register. If reached, return.
- interval : Check the trigger register every interval
- n_events_exp : Don’t return before we have seen this many events