Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions source/fundamentals/transactions.txt
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,13 @@ describes these methods:
transaction was committed or ended.

* - ``and_run()``
- | Runs the given callback, then commits or ends the transaction. When you
use this method to perform a transaction, the driver automatically
handles any errors, so you can choose to omit error handling code.
- | Runs the given callback, then commits or ends the transaction. The
driver retries callbacks and commits that raise an error with a
``TRANSIENT_TRANSACTION_ERROR`` label. If they raise any
other error, the driver ends the transaction and returns the error
to the caller. When you use this method to perform a transaction,
the driver automatically handles any errors, so you can choose to omit
error handling code.
|
| Because the callback returns a future and can be run multiple
times, the Rust language closure borrowing rules for captured
Expand Down
Loading