destroy method

void destroy()

Stops observing: clears listeners and timers and leaves the query, which starts its gcTime clock.

Implementation

void destroy() {
  _lifetime++;
  _resultRevision++;
  _listeners.clear();
  _clearStaleTimeout();
  _clearRefetchInterval();
  _currentQuery.removeObserver(this);
}