Skip to content

Documentation / @andrew_l/mongo-transaction / OnMongoSessionCommittedResult

Type Alias: OnMongoSessionCommittedResult<T> ​

OnMongoSessionCommittedResult<T> = object

Type Parameters ​

T ​

T

Properties ​

cancel ​

cancel: () => void

Removes the listener. promise never settles afterwards.

Returns ​

void


promise ​

promise: Promise<T | undefined>

Resolves with T after commit, with undefined if the transaction did not commit. Rejects only if fn throws.

Released under the MIT License.