@@ -39,18 +39,24 @@ type Client interface {
3939 // Best effort policy may be implements with outer retry loop includes CreateSession call
4040 CreateSession (ctx context.Context , opts ... Option ) (s ClosableSession , err error )
4141
42- // Do provide the best effort for execute operation
42+ // Do provide the best effort for execute operation.
43+ //
4344 // Do implements internal busy loop until one of the following conditions is met:
4445 // - deadline was canceled or deadlined
4546 // - retry operation returned nil as error
46- // Warning: if context without deadline or cancellation func than Do can run indefinitely
47+ //
48+ // Warning: if context without deadline or cancellation func than Do can run indefinitely.
4749 Do (ctx context.Context , op Operation , opts ... Option ) error
4850
49- // DoTx provide the best effort for execute transaction
51+ // DoTx provide the best effort for execute transaction.
52+ //
5053 // DoTx implements internal busy loop until one of the following conditions is met:
5154 // - deadline was canceled or deadlined
5255 // - retry operation returned nil as error
53- // DoTx makes auto begin, commit and rollback of transaction
56+ //
57+ // DoTx makes auto begin (with TxSettings, by default - SerializableReadWrite), commit and
58+ // rollback (on error) of transaction.
59+ //
5460 // If op TxOperation returns nil - transaction will be committed
5561 // If op TxOperation return non nil - transaction will be rollback
5662 // Warning: if context without deadline or cancellation func than DoTx can run indefinitely
0 commit comments