async fn sleep_if_required(&self) {
        if self.has_delay_between_events {
            time::sleep(DELAY_BETWEEN_EVENTS).await;
        } else {
            task::yield_now().await;
        }
    }
/// Sleeps if `self` was set to enable delays between events.
Sleeps if `self` was set to enable delays between events.
Sleeps if ` self ` was set to enable delays between events .
async fn sleep_if_required(&self) {
        if self.has_delay_between_events {
            time::sleep(DELAY_BETWEEN_EVENTS).await;
        } else {
            task::yield_now().await;
        }
    }
async fn sleep_if_required ( & self ) { if self . has_delay_between_events { time :: sleep ( DELAY_BETWEEN_EVENTS ) . await ; } else { task :: yield_now ( ) . await ; } }
Sleeps if `self` was set to enable delays between events.
Sleeps if ` self ` was set to enable delays between events .
&self
&self