Async functions run on the caller’s actor by default: forums.swift.org/t/se-0461-ru...
A mode to infer MainActor by default: forums.swift.org/t/pitch-cont...
Async functions run on the caller’s actor by default: forums.swift.org/t/se-0461-ru...
A mode to infer MainActor by default: forums.swift.org/t/pitch-cont...
Would have been a documentation problem before, but is now a type system problem.
Would have been a documentation problem before, but is now a type system problem.
どこも登壇させてくれそうにないから自分でやるスタイル!
20時から!
ios-torikoboshi.connpass.com/event/407847/
どこも登壇させてくれそうにないから自分でやるスタイル!
20時から!
ios-torikoboshi.connpass.com/event/407847/
www.massicotte.org/blog/mainact...
www.massicotte.org/blog/mainact...
クイズ形式でダメなパターンの理解が深まり、これからはXcodeに怒られなくて済みそうです
ありがとうございました🙇♀️
クイズ形式でダメなパターンの理解が深まり、これからはXcodeに怒られなくて済みそうです
ありがとうございました🙇♀️
Because that is what I do.
Because that is what I do.
“Approachable Concurrency” is just a big group of settings. It is completely independent of making the default isolation MainActor.
“Approachable Concurrency” is just a big group of settings. It is completely independent of making the default isolation MainActor.
It seems the isolation of a default-MainActor function is not enforced outside its defining module, even in 6 mode. It seems pretty rare to have non-leaf default MainActor modules. But if you do, extreme care is required.
It seems the isolation of a default-MainActor function is not enforced outside its defining module, even in 6 mode. It seems pretty rare to have non-leaf default MainActor modules. But if you do, extreme care is required.
But wait!! Approachable concurrency != MainActor by default!
(I happen to also disagree that MainActor is best way to enforce main thread only execution but that is another discussion)
But wait!! Approachable concurrency != MainActor by default!
(I happen to also disagree that MainActor is best way to enforce main thread only execution but that is another discussion)
But it’s a new codebase (started earlier this year), still really small, and 99% on MainActor anyway.
But it’s a new codebase (started earlier this year), still really small, and 99% on MainActor anyway.
Swift 6.2's 𝘔𝘢𝘪𝘯𝘈𝘤𝘵𝘰𝘳 isolation isn't just about adding it - understanding when to remove it is the real challenge.
#Swift #Concurrency #BestPractices
massicotte.org/blog/mainact...
Swift 6.2's 𝘔𝘢𝘪𝘯𝘈𝘤𝘵𝘰𝘳 isolation isn't just about adding it - understanding when to remove it is the real challenge.
#Swift #Concurrency #BestPractices
massicotte.org/blog/mainact...
https://fuckingapproacha...
https://fuckingapproacha...
In Xcode 26, `nonisolated async` doesn't either: it runs on the caller's actor.
Want off? Mark it `@ concurrent`.
In Xcode 26, `nonisolated async` doesn't either: it runs on the caller's actor.
Want off? Mark it `@ concurrent`.