Isolated deinit not in Swift 6.1?

I was expecting isolated deinit to be available in Swift 6.1, but it's still marked as an "experimental" feature (not even an upcoming one, so we can't even try it in the production compiler).

What's this waiting on, and when can we expect it generally?

1 Like

It’s in 6.2, the current main branch.

It was deemed too risky to include in 6.1 back then during qualification process of 6.1.

3 Likes

Proposal needs to be updated then, it says Swift 6.1.

3 Likes

I put up a PR that update the proposal: Update 0371-isolated-synchronous-deinit.md by heckj Β· Pull Request #2707 Β· swiftlang/swift-evolution Β· GitHub

4 Likes

Thank you for making the PR @Joseph_Heck!

1 Like

Hi there!

Since it will be released in Swift 6.2, is there a way to use the isolated deinit - eg: .enableUpcomingFeature("IsolatedDeinit") - in my Swift 6.1 package?

EDIT:
When I tried to add an isolated deinit to my actor, I saw an error:

'isolated' deinit requires frontend flag -enable-experimental-feature IsolatedDeinit to enable the usage of this language feature

Then I added .enableExperimentalFeature("IsolatedDeinit") to my package, and it couldn't be built due to an error:

experimental feature 'IsolatedDeinit' cannot be enabled in production compiler

Thank you.