resubscribe method

void resubscribe()

Cancel the current subscription (if any) and re-subscribe to streamFn.

Triggered automatically when this stream query is invalidated via ZenQueryCache.invalidateQuery or ZenQueryCache.invalidateQueries.

Implementation

void resubscribe() {
  if (_isDisposed) return;
  unsubscribe();
  subscribe();
}