Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make SessionShutdown event async #1541

Merged
merged 1 commit into from
Apr 24, 2024
Merged

Conversation

lukebakken
Copy link
Contributor

No description provided.

@lukebakken lukebakken self-assigned this Apr 23, 2024
@lukebakken lukebakken added this to the 7.0.0 milestone Apr 23, 2024
* Replace `lock` with `SemaphoreSlim`

* Pass cancellation token through recovery

* Fix not waiting for async methods

* Propagate cancellation token

* Add `CancellationToken` to `AsyncEventHandler` arguments

* Add async version of `ConnectionShutdown` event

* Ignore `OperationCanceledException` if it is due to the consumer dispatcher shutting down

* shellcheck fixes, allow pulling fresh docker images

* More async methods

* More changes around cancellation tokens

* Switch to TrySetException

* Comment-out TestDisposedWithSocketClosedOutOfBand flaky test
@lukebakken lukebakken force-pushed the lukebakken/async-sessionshutdown branch from 6204ead to f0fbe09 Compare April 24, 2024 18:44
@lukebakken lukebakken marked this pull request as ready for review April 24, 2024 18:58
@lukebakken lukebakken merged commit 2ed3075 into main Apr 24, 2024
10 of 11 checks passed
@lukebakken lukebakken deleted the lukebakken/async-sessionshutdown branch April 24, 2024 18:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant