Skip to content

Make syncShutdown unavailable from async#667

Merged
dnadoba merged 2 commits into
swift-server:mainfrom
Lukasa:cb-sync-shutdown-unavailable-from-async
Feb 13, 2023
Merged

Make syncShutdown unavailable from async#667
dnadoba merged 2 commits into
swift-server:mainfrom
Lukasa:cb-sync-shutdown-unavailable-from-async

Conversation

@Lukasa

@Lukasa Lukasa commented Feb 13, 2023

Copy link
Copy Markdown
Collaborator

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