#include "tensorstore/transaction.h"
void tensorstore::Transaction::Abort() const;

Aborts the transaction (has no effect if already aborted or committed).

If there are outstanding operations on the transaction that are still in progress, the transaction won’t actually abort until they complete.

To wait until all outstanding operations have completed and the transaction is fully aborted, call future().result().

Once the transaction is fully aborted, future() becomes ready with an error status of absl::StatusCode::kCancelled.