expirer method

Timer expirer([
  1. Duration? duration
])

Implementation

Timer expirer([Duration? duration]) {
  return Timer(duration ?? DEFAULT_COMPLETER_TIMEOUT, () {
    completeError(const ErrorResponse(code: -1, message: 'Timeout'));
  });
}