asyncCancel method

bool asyncCancel(
  1. int requestId
)
inherited

Best-effort cancellation for an async request.

Implementation

bool asyncCancel(int requestId) => _captureSync(
      'asyncCancel',
      () => _native.asyncCancel(requestId),
      failed: (value) => !value,
    );