You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
await fulfillment(of: [something], timeout: 5)
`- warning: sending main actor-isolated value of type 'SomeXCTestCase' with later accesses to nonisolated context risks causing data races; this is an error in the Swift 6 language mode
This was temporarily fixed for the 5.10 branch using @_unsafeInheritExecutor: #479, but it is occurring now on Swift 6 OSS toolchains.
The text was updated successfully, but these errors were encountered:
We fixed this in release/5.10 with the old @_unsafeInheritExecutor (as mentioned) but never went ahead with adopting #isolation in 6.0. We can do this for 6.1 though.
The following code produces a concurrency error in Swift 6 mode:
(Credit Gero Herk for the sample, from https://forums.swift.org/t/swift-5-10-concurrency-and-xctest/69929/6)
The error is:
This was temporarily fixed for the
5.10
branch using@_unsafeInheritExecutor
: #479, but it is occurring now on Swift 6 OSS toolchains.The text was updated successfully, but these errors were encountered: