Concurrency
4 documents
Adopt Swift 6 strict concurrency incrementally
Migrate to Swift 6 data-race safety module by module, making every type that crosses an isolation boundary Sendable.
swiftiosmacos
Immutability
Mutable shared state is the root cause of most concurrency bugs. Default to immutable values; introduce mutability on...
kotlintypescript
Kotlin Flow and StateFlow: lifecycle-aware state exposure
Expose UI state as StateFlow via stateIn and collect it lifecycle-aware, injecting dispatchers for testability.
kotlin
No blocking the main thread
All lengthy work must run on background threads/tasks using platform async primitives:
csharpkotlinpythonswifttypescriptwebwindows