We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3dad6c2 commit 46686b8Copy full SHA for 46686b8
src/sessions.ts
@@ -788,7 +788,9 @@ export class ClientSession
788
await this.commitTransaction();
789
committed = true;
790
} catch (commitError) {
791
- // If CSOT is enabled, we repeatedly retry until timeoutMS expires.
+ // If CSOT is enabled, we repeatedly retry until timeoutMS expires. This is enforced by providing a
792
+ // timeoutContext to each async API, which know how to cancel themselves (i.e., the next retry will
793
+ // abort the withTransaction call).
794
// If CSOT is not enabled, do we still have time remaining or have we timed out?
795
const hasNotTimedOut =
796
this.timeoutContext?.csotEnabled() || now() - startTime < MAX_TIMEOUT;
0 commit comments