Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@czechboy0
Copy link
Contributor

Motivation

These 5 fixes are intertwined and were difficult to split out, so here's one PR that fixes them all.

Modifications

The PR enables NonisolatedNonsendingByDefault, which caused an error in the existing combineLatest implementation, which we wanted to replace anyway.
So we vendor in the code from Swift Async Algoritms (the PR is open here: apple/swift-async-algorithms#360), the plan is to remove this copy when it lands in async algos.
Updating the combineLatest implementation to the correct one requires the async sequences to be Sendable, which in turn requires Swift 6.2 for us to be able to spell any (AsyncSequence & Sendable) correctly, it doesn't work on 6.1.
We also enabled the explicit sendable warning in CI, helping us ensure all our public API is explicitly annotated as Sendable or not.

Result

Addressed 5 important issues that impact the API and concurrency.

Test Plan

TODO: I'll write more tests for the new combineLatest implementation and add more failure cases, as the bug in the existing implementation was in how errors are rethrown.

@czechboy0 czechboy0 requested a review from FranzBusch October 24, 2025 13:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant