Skip to content

Make syncShutdown unavailable from async #667

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

Merged

Conversation

Lukasa
Copy link
Collaborator

@Lukasa Lukasa commented Feb 13, 2023

Motivation

syncShutdown can cause unbounded thread blocking, we shouldn't allow it in concurrent code.

Modification

Mark syncShutdown unavailable from async.

Result

Users are warned if they try to syncShutdown in an async context

Motivation

syncShutdown can cause unbounded thread blocking, we shouldn't allow it
in concurrent code.

Modification

Mark syncShutdown unavailable from async.

Result

Users are warned if they try to syncShutdown in an async context
@Lukasa Lukasa added the 🔨 semver/patch No public API change. label Feb 13, 2023
@dnadoba dnadoba merged commit 9401037 into swift-server:main Feb 13, 2023
@dnadoba dnadoba added 🆕 semver/minor Adds new public API. and removed 🔨 semver/patch No public API change. labels Feb 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🆕 semver/minor Adds new public API.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants