Concurrency using Actors | Swift 5.5 | Async/Await | Data Race

Concurrency using Actors | Swift 5.5 | Async/Await | Data Race

Concurrency has always been a pain point for developers and Swift 5.5 has introduced some really cool APIs to make it easy.
In this video, I’ve discussed Actors in detail. For explaining its usage, I took an example having Data Race (seat booking), fixed it using conventional ways (Dispatch Barrier), and rewrote the logic using Actor (for showing the difference that how easy it gets with Actor).
Along the way, I’ve also discussed (and used) Async/Await and Main Actors (for updating the UI from background thread).

Please have a look.

iOSswiftxcode

Post a Comment

0 Comments