Commit a72e5e2
authored
[service-bus] Making BatchingReceiver properly cleanup after an abort (Azure#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 Azure#129221 parent 8c30af4 commit a72e5e2
File tree
4 files changed
+214
-184
lines changed- sdk/servicebus/service-bus
- src/core
- test/internal
4 files changed
+214
-184
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
| 9 | + | |
8 | 10 | | |
9 | 11 | | |
10 | 12 | | |
| |||
0 commit comments