#include "tensorstore/tensorstore.h"
friend Result<TensorStore>
tensorstore::TensorStore<ElementType, Rank, Mode>::
    
ApplyTensorStoreTransaction(TensorStore store,
                                
Transaction transaction);

Changes to a new transaction.

Fails if store is already associated with an uncommitted transaction.

This is intended to be used with the “pipeline” operator| or ChainResult.

Example:

tensorstore::TensorStore<> store = ...;
auto transaction = tensorstore::Transaction(tensorstore::isolated);
TENSORSTORE_ASSIGN_OR_RETURN(store, store | transaction);