Skip to main content

Module latency

Module latency 

Source
Expand description

Latency injection: simulate slow-but-not-failing operations.

LatencyInjector produces a deterministic delay per attempt according to a LatencyProfile. It composes with FailureSchedule (see LatencyInjector::compose_with_schedule): inject latency on every call, inject failures on a subset.

Structs§

LatencyAndFailure
A latency injector composed with a FailureSchedule.
LatencyInjector
Computes per-attempt delays from a LatencyProfile.

Enums§

LatencyProfile
Per-attempt latency profile.