revokeAndDrain abstract method

Future<void> revokeAndDrain([
  1. Object? reason,
  2. Duration? grace,
  3. Duration? timeout
])

revoke, then waits for the final drain; with timeout, fails with a TimeoutException when the run has not drained by then.

Implementation

Future<void> revokeAndDrain([
  Object? reason,
  Duration? grace,
  Duration? timeout,
]);