cancelPendingRequests method
Cancels every in-flight REST request.
Fire this before tearing down the session (logout, dispose) so
pending HTTP calls do not race against a token provider that has
just been invalidated — without it a 401 on a stale request could
trigger an auth refresh + onAuthFailure against already-closed
UI. The default implementation in NomaChatClient also wires this
into logout and dispose automatically; consumers usually do
not need to call it directly.
Implementation
@override
void cancelPendingRequests([String reason = 'cancelled']) {}