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

Remove misuse of EmbeddedEventLoop #812

Merged
merged 1 commit into from
Feb 17, 2025

Conversation

Lukasa
Copy link
Collaborator

@Lukasa Lukasa commented Feb 17, 2025

Motivation

EmbeddedEventLoop is not thread-safe, which means that outside of very rare use-cases it's not safe to use it in Swift Concurrency.

Modifications

Replace invalid uses of EmbeddedEventLoop with NIOAsyncTestingEventLoop

Result

Better safety

Motivation

EmbeddedEventLoop is not thread-safe, which means that outside
of very rare use-cases it's not safe to use it in Swift Concurrency.

Modifications

Replace invalid uses of EmbeddedEventLoop with NIOAsyncTestingEventLoop

Result

Better safety
@Lukasa Lukasa added 🔨 semver/patch No public API change. semver/none No version bump required. and removed 🔨 semver/patch No public API change. labels Feb 17, 2025
@Lukasa Lukasa merged commit 3b4942f into swift-server:main Feb 17, 2025
24 of 25 checks passed
@Lukasa Lukasa deleted the cb-fix-eel-warnings branch February 17, 2025 15:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver/none No version bump required.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants