Skip to content

Commit

Permalink
add comment about Xact limitations
Browse files Browse the repository at this point in the history
Patch for "plugin: Add transactions for speculative operations"
  • Loading branch information
sharnoff committed Jun 14, 2024
1 parent 7d911b4 commit 0972c4c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/util/xact/xact.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ type Xact[T any] struct {
}

// New returns a new transaction object (called Xact) operating on the given pointer
//
// NOTE: Any copying is shallow -- if T contains pointers, any changes to the values behind those
// will NOT be delayed until (*Xact[T]).Commit().
func New[T any](ptr *T) *Xact[T] {
return &Xact[T]{
tmp: *ptr,
Expand Down

0 comments on commit 0972c4c

Please sign in to comment.