MainActor isolated property can not be mutated from deinit

The proposal for isolated deinit will address this: Isolated synchronous deinit.

We've just given it another round of discussion [Sub-Pitch] Task-local values in isolated synchronous deinit and async deinit where we've reached a design conclusion -- so now @Nickolas_Pohilets will update the proposal and it will be reviewed and hopefully accepted :slight_smile:

Then you'd be able to say

    deinit isolated {
        observed = nil
    }

The second review will be happening hopefully very soon. I am not sure if it could be considered for 6.0 or not at this point.

3 Likes