notifyCancelled method

  1. @override
void notifyCancelled(
  1. Object requestId, {
  2. String? reason,
})
override

Cancel an in-flight server-side operation.

Per spec, cancellation is a NOTIFICATION (notifications/cancelled), not a request — fire-and-forget with requestId and an optional reason.

Only a request this client sent and is still waiting on can be cancelled; its call then fails, and a late response is ignored. (A call made with RequestOptions.cancel is cancelled the same way.)

Implementation

@override
void notifyCancelled(Object requestId, {String? reason}) =>
    inner.notifyCancelled(requestId, reason: reason);