RetryExecutor constructor

RetryExecutor({
  1. Random? random,
})

Creates a RetryExecutor.

random is injectable for deterministic testing.

Implementation

RetryExecutor({Random? random}) : _random = random ?? Random();