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