Skip to main content

sleep_duration

Function sleep_duration 

Source
pub fn sleep_duration() -> Duration
Expand description

Returns a sleep duration of 1 second in test environments or 60 seconds in production. Used for polling intervals where faster feedback is needed during testing.