Swift: Conform Older Protocols to MainActor Isolation? Swift Bridging the Gap Conforming Older Protocols to Main Actor Isolation Swifts concurrency model introduced in Swift 5 5 emphasizes thread safety and predicta 3 min read 05-10-2024 8
Use a `Protocol` instead of concrete @MainActor class produces an error Using a Protocol Instead of a Concrete Main Actor Class Understanding the Error In Swift programming particularly when dealing with concurrency you may encounte 2 min read 26-09-2024 19
Swift 6: Capture of 'self' with non-sendable type in a @Sendable closure Swift 6 Understanding self Capture with Non Sendable Types in a Sendable Closure In the world of Swift programming particularly with the introduction of Swift 6 3 min read 23-09-2024 25
call swift Actor from AVAudioEngine (synchronous) code Calling Swift Actor from AV Audio Engine Synchronous Code A Comprehensive Guide In this article we will explore how to call a Swift Actor from AV Audio Engine i 3 min read 20-09-2024 20
thread safe swift singleton with async/ await and async init Thread Safe Swift Singleton with Async Await and Async Init Singletons are a common design pattern in software development often used to manage shared resources 3 min read 03-09-2024 18
Printing Arithmetical Expressions with Akka Actors Printing Arithmetical Expressions with Akka Actors A Guide to Parallel Computation and String Formatting This article explores a common challenge faced by devel 2 min read 01-09-2024 17
Correct usage of @Observable and @MainActor Demystifying Observable and Main Actor in Swift UI A Comprehensive Guide Swift UIs declarative nature makes it a joy to work with but understanding how to handl 2 min read 30-08-2024 19
Closures in actors: Sending 'nonSendable' risks causing data races Understanding Data Races and Closures in Actors A Deep Dive Actors in Swift are designed to be safe and concurrent ensuring thread safety by restricting access 3 min read 28-08-2024 38