delay method

void delay(
  1. Duration duration, {
  2. String? operationId,
  3. int times = 1,
})

Holds the responses of the next times requests of operationId (of any operation when null) for duration after they were handled.

Implementation

void delay(Duration duration, {String? operationId, int times = 1}) =>
    _rules.add(_Rule(DelayFault(operationId, duration), times));