cancelStatement method

Future<bool> cancelStatement(
  1. int stmtId
)

Requests cancellation of prepared statement stmtId in the worker.

Returns true if cancellation request succeeded, false otherwise.

Implementation

Future<bool> cancelStatement(int stmtId) async {
  final r = await _sendRequest<BoolResponse>(
    CancelStatementRequest(_nextRequestId(), stmtId),
  );
  return r.value;
}