dispose method

void dispose()

Detaches from the agent and cancels any pending retry.

Implementation

void dispose() {
  _retryTimer?.cancel();
  _retryTimer = null;
  _unsubscribe?.call();
  _unsubscribe = null;
  _maybeCompleteSettled();
}