Skip to content

Conversation

@PeterAdams-A
Copy link
Contributor

Motivation:

Swift concurrency warnings are here to help.
We can encode some of our assumptions to the type system.

Modifications:

Replace a number of captured variables with LoopBound instances.

Result:

Fewer sendability warnings

Motivation:

Swift concurrency warnings are here to help.
We can encode some of our assumptions to the type system.

Modifications:

Replace a number of captured variables with LoopBound instances.

Result:

Fewer sendability warnings
@Lukasa Lukasa added the 🔨 semver/patch No public API change. label Aug 11, 2023
@Lukasa
Copy link
Contributor

Lukasa commented Aug 11, 2023

The mighty power of NIOLoopBoundBox combining with EmbeddedEventLoop. I was confident this wouldn't work on first blush. Nice!

@PeterAdams-A
Copy link
Contributor Author

The 5.9 allocation failures are the same without these changes so will merge .

@PeterAdams-A PeterAdams-A merged commit d23c142 into apple:main Aug 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🔨 semver/patch No public API change.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants