asyncCancel method

Future<bool> asyncCancel(
  1. int asyncRequestId
)

Best-effort cancellation for async request.

Implementation

Future<bool> asyncCancel(int asyncRequestId) async {
  final r = await _sendRequest<BoolResponse>(
    AsyncCancelRequest(_nextRequestId(), asyncRequestId),
  );
  return r.value;
}