Skip to main content

random_delay

Function random_delay 

Source
pub fn random_delay() -> impl Future<Output = ()>
Expand description

Gives way a random number of times - as many as the seed says under a [Seeded] executor, once outside one.

What a fake does where the real work takes as long as it takes. The number comes from the executor’s own generator, so a seed replays the delays along with the order.