While I was writing a lesson for my concurrency course, I ran into the same question. While I looked at the mentioned article, it did not list all upcoming features that come with Approachable Concurrency.
Note that this list might change in the future, but as of today, the following features are enabled:
Disable Outward Actor Isolation Inference (SE-401)
Usability of global-actor-isolated types (SE-434)
Global-actor isolated conformances (SE-470)
Inferring Sendable for methods and key path literals (SE-418)
nonisolated(nonsending) by Default (SE-461)
I went ahead and copied all upcoming feature flags for you. Here's the code to use inside your Swift Package:
.target(
name: "YourPackageTarget",
swiftSettings: [
.enableUpcomingFeature("DisableOutwardActorInference"),
.enableUpcomingFeature("GlobalActorIsolatedTypesUsability"),
.enableUpcomingFeature("InferIsolatedConformances"),
.enableUpcomingFeature("InferSendableFromCaptures"),
.enableUpcomingFeature("NonisolatedNonsendingByDefault")
]
)
Don't forget to update your package tools version:
// swift-tools-version: 6.2
Although you can already start using some of these upcoming features since Swift 5.9 / 6.0.
–––
Antoine van der Lee — Founder of SwiftLee
Teaching Concurrency at swiftconcurrencycourse.com