Skip to content

Commit

Permalink
Update Transactions.md
Browse files Browse the repository at this point in the history
Using await for an async method.
  • Loading branch information
DavidKlempfner authored Oct 17, 2023
1 parent 5504ed9 commit 8d65872
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/Transactions.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ mixed together with other callers. So our example becomes:
var newId = CreateNewId();
var tran = db.CreateTransaction();
tran.AddCondition(Condition.HashNotExists(custKey, "UniqueID"));
tran.HashSetAsync(custKey, "UniqueID", newId);
await tran.HashSetAsync(custKey, "UniqueID", newId);
bool committed = tran.Execute();
// ^^^ if true: it was applied; if false: it was rolled back
```
Expand Down

0 comments on commit 8d65872

Please sign in to comment.