Daily iOS
ConcurrencyZalandointerview report

Shared cache data race

Several image requests read and write the same in-memory cache dictionary at the same time. It crashes now and then, and the logs show the same URL downloaded twice. If you fixed it with an actor instead of a lock, which state would you put inside the actor?

Submit