Skip to content

robertmryan/ApproachableConcurrencyExample

Repository files navigation

Approachable Concurrency Example

In Help with approachable-concurrency sample code, it was suggested that the Image example from Swift 6.2 Released: Approachable Concurrency would result in an error, regardless of the “Default Actor Isolation” build setting.

In this MRE, though, the “Default Actor Isolation” does affect the error.

For example, set to “MainActor”, there is no error:

README - MainActor

However, with “Default Actor Isolation” of “nonisolated”, we get the expected error:

README - MainActor


Configuration:

  • Xcode 26.0.1 (17A400)
  • Build settings:
    • Language version: “Swift 6”
    • Approachable concurrency: “Yes”

Copyright © 2025 Robert M. Ryan

Releases

No releases published

Packages

 
 
 

Contributors

Languages