Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[service-bus] Making BatchingReceiver properly cleanup after an abort (…
…#13073) Some more fixes related to the prior PRs around making BatchingReceiver behavior consistent: * When we are closed (without error) or if we're in receiveAndDelete mode, we use the setTimeout() to ensure that we run after all pending message callbacks have fired * We always cleanup our handlers before resolve/reject and it's made more clear if we're resolving immediately or resolving after pending message callbacks. I also did some small refactors to make unit testing a bit easier, which should help make it simpler to validate this code path in the future. Fixes #12922
- Loading branch information