commitTransaction method

Future<bool> commitTransaction(
  1. int txnId
)

Commits the transaction identified by txnId in the worker.

Implementation

Future<bool> commitTransaction(int txnId) async {
  final r = await _sendRequest<BoolResponse>(
    CommitTransactionRequest(_nextRequestId(), txnId),
  );
  return r.value;
}