Searched refs:maybe_sleep (Results 1 – 1 of 1) sorted by relevance
9 async fn maybe_sleep(idx: i32) -> i32 { in maybe_sleep() function29 let stream = stream::iter(1..=4).then(maybe_sleep).timeout(ms(100)); in basic_usage()71 let stream = stream::iter(1..=3).then(maybe_sleep).timeout(ms(50)); in return_elapsed_errors_only_once()100 .then(maybe_sleep) in no_timeouts()