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

Add shutdownAsync #109

Merged
merged 4 commits into from
Jul 31, 2024
Merged

Add shutdownAsync #109

merged 4 commits into from
Jul 31, 2024

Conversation

0xTim
Copy link
Member

@0xTim 0xTim commented Jul 31, 2024

These changes are now available in 1.20.0

Even calling Dispatch's .wait() can cause the concurrency pool to deadlock meaning the connection pool never returns. This provides a proper async version of shutdown().

Annotates the offending functions with @noasync

See https://swift-open-source.slack.com/archives/C9MMT6VGB/p1722432257179729 for more context

@0xTim 0xTim added the semver-minor Contains new APIs label Jul 31, 2024
@0xTim 0xTim requested a review from gwynne as a code owner July 31, 2024 15:05
@0xTim 0xTim changed the title Add shutdownAsync Add shutdownAsync Jul 31, 2024
Copy link
Contributor

@MahdiBM MahdiBM left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.

@MahdiBM
Copy link
Contributor

MahdiBM commented Jul 31, 2024

The CI failures seem to be legit at a glance? I'll rerun just to see what happens, they failed in 1-3 mins anyway.

@0xTim
Copy link
Member Author

0xTim commented Jul 31, 2024

Yeah they are, fixing them now

Copy link
Contributor

@MahdiBM MahdiBM left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The tests make sense.

@0xTim 0xTim merged commit e048c8e into main Jul 31, 2024
8 checks passed
@0xTim 0xTim deleted the async-shutdown branch July 31, 2024 16:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver-minor Contains new APIs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants