Apple introduced the concept of Actors in iOS 13.0 and macOS 10.15. Actors allow us to modify the program state in a concurrent environment without data races and the possibility of corrupting data due to simultaneous access.
Data races happen when two threads access the same data and