Avatar
actor自体もロックの代わり以外で使われてるのを見たことがない
これもMutexが入ったことで変わってくるんですかねー https://github.com/apple/swift-evolution/blob/main/proposals/0433-mutex.md こんな話題があったのでちょっと気になりました。 https://forums.swift.org/t/se-0433-mutex-vs-actor-general-advice/71338
This maintains proposals for changes and user-visible enhancements to the Swift Programming Language. - apple/swift-evolution
With SE-0433 adding Mutex to the standard library. I'm wondering what the general advice is regarding using Mutex vs actor. Here is a very simple case of a FIFO using Array as storage to illustrate. FIFO has two methods of enqueuing and dequeuing. In the first case, FIFO is implemented using an actor and an Array as storage and in the second c...