You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -443,6 +448,11 @@ export class ClientSession extends TypedEventEmitter<ClientSessionEvents> {
443
448
*
444
449
* **IMPORTANT:** This method requires the function passed in to return a Promise. That promise must be made by `await`-ing all operations in such a way that rejections are propagated to the returned promise.
445
450
*
451
+
* **IMPORTANT:** Running operations in parallel is not supported during a transaction. The use of `Promise.all`,
452
+
* `Promise.allSettled`, `Promise.race`, etc to parallelize operations inside a transaction is
453
+
* undefined behaviour.
454
+
*
455
+
*
446
456
* @remarks
447
457
* - If all operations successfully complete and the `commitTransaction` operation is successful, then the provided function will return the result of the provided function.
448
458
* - If the transaction is unable to complete or an error is thrown from within the provided function, then the provided function will throw an error.
0 commit comments