Commit 5191a29
fix(audience): flushAsync accepts CancellationToken, swallows ObjectDisposedException
- Add optional CancellationToken. Caller can cancel the gate-wait and
the in-flight HTTP send (default is CancellationToken.None — no
behaviour change for existing callers).
- Catch ObjectDisposedException thrown when a concurrent Shutdown
disposed the transport mid-flush. Previously, the exception
propagated to the awaiter.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 05c6b08 commit 5191a29
1 file changed
Lines changed: 10 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
434 | 434 | | |
435 | 435 | | |
436 | 436 | | |
437 | | - | |
438 | | - | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
439 | 440 | | |
440 | 441 | | |
441 | 442 | | |
| |||
451 | 452 | | |
452 | 453 | | |
453 | 454 | | |
| 455 | + | |
454 | 456 | | |
455 | 457 | | |
456 | 458 | | |
457 | 459 | | |
458 | 460 | | |
459 | 461 | | |
460 | | - | |
| 462 | + | |
461 | 463 | | |
462 | 464 | | |
463 | 465 | | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
464 | 471 | | |
465 | 472 | | |
466 | 473 | | |
| |||
0 commit comments