#include "tensorstore/transaction.h"
Future<const void> tensorstore::Transaction::CommitAsync() const;

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

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

This operation is asynchronous. To synchronously commit and wait until the commit completes, use Commit(). The returned result indicates whether the commit was successful.

Returns:

future(), which becomes ready when the commit completes (either successfully or with an error).