File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -122,26 +122,33 @@ export class Transaction {
122
122
return this . _pinnedServer ;
123
123
}
124
124
125
+ /** @internal */
125
126
get recoveryToken ( ) : Document | undefined {
126
127
return this . _recoveryToken ;
127
128
}
128
129
130
+ /** @internal */
129
131
get isPinned ( ) : boolean {
130
132
return ! ! this . server ;
131
133
}
132
134
133
- /** @returns Whether the transaction has started */
135
+ /**
136
+ * @internal
137
+ * @returns Whether the transaction has started
138
+ */
134
139
get isStarting ( ) : boolean {
135
140
return this . state === TxnState . STARTING_TRANSACTION ;
136
141
}
137
142
138
143
/**
144
+ * @internal
139
145
* @returns Whether this session is presently in a transaction
140
146
*/
141
147
get isActive ( ) : boolean {
142
148
return ACTIVE_STATES . has ( this . state ) ;
143
149
}
144
150
151
+ /** @internal */
145
152
get isCommitted ( ) : boolean {
146
153
return COMMITTED_STATES . has ( this . state ) ;
147
154
}
You can’t perform that action at this time.
0 commit comments