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
fix: allow event loop to process during wait queue processing (#2537)
* fix: allow event loop to process during wait queue processing
Running `processWaitQueue` on the next tick allows the event loop
to process while the connection pool is processing large numbers of
wait queue members. This also uncovered a few issues with timing
in our tests, and in some cases our top-level API:
- `commitTransaction` / `abortTransaction` use `maybePromise` now
- `endSession` must wait for all the machinery behind the scenes to
check out a connection and write a message before considering its
job finished
- internal calls to `kill` a cursor now await the the process of fully
sending that command, even if they ignore the response
NODE-2803
0 commit comments