There was a pitch to enable things like [isolated self]
, but it hasn't seen any progress in the last few months. I believe that for now, you'd need to pull self.x += 1
out into a separate isolated function.
Task {
await self.incrementX()
}
There was a pitch to enable things like [isolated self]
, but it hasn't seen any progress in the last few months. I believe that for now, you'd need to pull self.x += 1
out into a separate isolated function.
Task {
await self.incrementX()
}