aboutsummaryrefslogtreecommitdiff
path: root/refstore/batch.go
diff options
context:
space:
mode:
Diffstat (limited to 'refstore/batch.go')
-rw-r--r--refstore/batch.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/refstore/batch.go b/refstore/batch.go
index 6352159c..b170916b 100644
--- a/refstore/batch.go
+++ b/refstore/batch.go
@@ -34,8 +34,12 @@ type Batch interface {
// Apply validates and applies queued operations, returning one result per
// queued operation in order. Fatal backend failures are returned separately.
+ //
+ // Apply is terminal. Further use of the batch is undefined behavior.
Apply() ([]BatchResult, error)
// Abort abandons the batch and releases any resources it holds.
+ //
+ // Abort is terminal. Further use of the batch is undefined behavior.
Abort() error
}