netstack_testing_common

Function annotate

Source
pub fn annotate<'a, 'b: 'a, T>(
    fut: impl Future<Output = T> + 'a,
    interval: Duration,
    event_name: &'b str,
) -> impl Future<Output = T> + 'a
Expand description

Wraps fut so that it prints event_name and the caller’s location to stderr every interval until fut completes.