@@ -42,21 +42,14 @@ upper-right to set the language of the following example.
42
42
43
43
----------
44
44
45
- This example highlights the key components of the transactions API.
46
-
47
45
.. tabs-selector:: drivers
48
46
49
47
.. tabs-drivers::
50
48
51
49
.. tab::
52
50
:tabid: python
53
51
54
- The example uses the new callback API for working with
55
- transactions, which starts a transaction, executes the
56
- specified operations, and commits (or aborts on error). The
57
- new callback API also incorporates retry logic for
58
- ``TransientTransactionError`` or
59
- ``UnknownTransactionCommitResult`` commit errors.
52
+ .. include:: /includes/transactions/example-intro.rst
60
53
61
54
.. include:: /includes/extracts/transactions-example-note.rst
62
55
@@ -69,12 +62,7 @@ This example highlights the key components of the transactions API.
69
62
.. tab::
70
63
:tabid: java-sync
71
64
72
- The example uses the new callback API for working with
73
- transactions, which starts a transaction, executes the
74
- specified operations, and commits (or aborts on error). The
75
- new callback API also incorporates retry logic for
76
- ``TransientTransactionError`` or
77
- ``UnknownTransactionCommitResult`` commit errors.
65
+ .. include:: /includes/transactions/example-intro.rst
78
66
79
67
.. include:: /includes/extracts/transactions-example-note.rst
80
68
@@ -141,12 +129,7 @@ This example highlights the key components of the transactions API.
141
129
.. tab::
142
130
:tabid: nodejs
143
131
144
- The example uses the new callback API for working with
145
- transactions, which starts a transaction, executes the
146
- specified operations, and commits (or aborts on error). The
147
- new callback API also incorporates retry logic for
148
- ``TransientTransactionError`` or
149
- ``UnknownTransactionCommitResult`` commit errors.
132
+ .. include:: /includes/transactions/example-intro.rst
150
133
151
134
.. include:: /includes/extracts/transactions-example-note.rst
152
135
@@ -159,12 +142,7 @@ This example highlights the key components of the transactions API.
159
142
.. tab::
160
143
:tabid: php
161
144
162
- The example uses the new callback API for working with
163
- transactions, which starts a transaction, executes the
164
- specified operations, and commits (or aborts on error). The
165
- new callback API also incorporates retry logic for
166
- ``TransientTransactionError`` or
167
- ``UnknownTransactionCommitResult`` commit errors.
145
+ .. include:: /includes/transactions/example-intro.rst
168
146
169
147
.. include:: /includes/extracts/transactions-example-note.rst
170
148
@@ -177,12 +155,7 @@ This example highlights the key components of the transactions API.
177
155
.. tab::
178
156
:tabid: csharp
179
157
180
- The example uses the new callback API for working with
181
- transactions, which starts a transaction, executes the
182
- specified operations, and commits (or aborts on error). The
183
- new callback API also incorporates retry logic for
184
- ``TransientTransactionError`` or
185
- ``UnknownTransactionCommitResult`` commit errors.
158
+ .. include:: /includes/transactions/example-intro.rst
186
159
187
160
.. include:: /includes/extracts/transactions-example-note.rst
188
161
@@ -195,12 +168,7 @@ This example highlights the key components of the transactions API.
195
168
.. tab::
196
169
:tabid: c
197
170
198
- The example uses the new callback API for working with
199
- transactions, which starts a transaction, executes the
200
- specified operations, and commits (or aborts on error). The
201
- new callback API also incorporates retry logic for
202
- ``TransientTransactionError`` or
203
- ``UnknownTransactionCommitResult`` commit errors.
171
+ .. include:: /includes/transactions/example-intro.rst
204
172
205
173
.. include:: /includes/extracts/transactions-example-note.rst
206
174
@@ -212,12 +180,7 @@ This example highlights the key components of the transactions API.
212
180
.. tab::
213
181
:tabid: cpp
214
182
215
- The example uses the new callback API for working with
216
- transactions, which starts a transaction, executes the
217
- specified operations, and commits (or aborts on error). The
218
- new callback API also incorporates retry logic for
219
- ``TransientTransactionError`` or
220
- ``UnknownTransactionCommitResult`` commit errors.
183
+ .. include:: /includes/transactions/example-intro.rst
221
184
222
185
.. include:: /includes/extracts/transactions-example-note.rst
223
186
@@ -230,12 +193,7 @@ This example highlights the key components of the transactions API.
230
193
.. tab::
231
194
:tabid: motor
232
195
233
- The example uses the new callback API for working with
234
- transactions, which starts a transaction, executes the
235
- specified operations, and commits (or aborts on error). The
236
- new callback API incorporates retry logic for
237
- :ref:`transient-transaction-error` or
238
- :ref:`unknown-transaction-commit-result` commit errors.
196
+ .. include:: /includes/transactions/example-intro.rst
239
197
240
198
.. include:: /includes/extracts/transactions-example-note.rst
241
199
@@ -248,12 +206,7 @@ This example highlights the key components of the transactions API.
248
206
.. tab::
249
207
:tabid: ruby
250
208
251
- The example uses the new callback API for working with
252
- transactions, which starts a transaction, executes the
253
- specified operations, and commits (or aborts on error). The
254
- new callback API incorporates retry logic for
255
- :ref:`transient-transaction-error` or
256
- :ref:`unknown-transaction-commit-result` commit errors.
209
+ .. include:: /includes/transactions/example-intro.rst
257
210
258
211
.. include:: /includes/extracts/transactions-example-note.rst
259
212
@@ -267,12 +220,7 @@ This example highlights the key components of the transactions API.
267
220
.. tab::
268
221
:tabid: go
269
222
270
- The example uses the new callback API for working with
271
- transactions, which starts a transaction, executes the
272
- specified operations, and commits (or aborts on error). The
273
- new callback API incorporates retry logic for
274
- :ref:`transient-transaction-error` or
275
- :ref:`unknown-transaction-commit-result` commit errors.
223
+ .. include:: /includes/transactions/example-intro.rst
276
224
277
225
.. include:: /includes/extracts/transactions-example-note.rst
278
226
@@ -284,12 +232,7 @@ This example highlights the key components of the transactions API.
284
232
.. tab::
285
233
:tabid: perl
286
234
287
- This example uses the :ref:`core API <txn-core-api>`. Because the
288
- core API does not incorporate retry logic for
289
- :ref:`transient-transaction-error` or
290
- :ref:`unknown-transaction-commit-result` commit errors, the
291
- example includes explicit logic to retry the transaction for these
292
- errors:
235
+ .. include:: /includes/transactions/example-intro.rst
293
236
294
237
.. include:: /includes/extracts/transactions-example-note.rst
295
238
@@ -302,7 +245,7 @@ This example highlights the key components of the transactions API.
302
245
:tabid: scala
303
246
304
247
This example uses the :ref:`core API <txn-core-api>`. Because the
305
- core API does not incorporate retry logic for
248
+ core API does not incorporate retry logic for the
306
249
:ref:`transient-transaction-error` or
307
250
:ref:`unknown-transaction-commit-result` commit errors, the
308
251
example includes explicit logic to retry the transaction for
0 commit comments