How to achieve thread safety for removeAtIndex when array has concurrent reads in Swift?

后端 未结 0 482
孤街浪徒
孤街浪徒 2020-12-13 01:53

I was looking at this answer that provides code for a thread safe array with concurrent reads. As @tombardey points out in the comments the code (relevant snippet below) is

相关标签:
回答
  • 消灭零回复
提交回复
热议问题