ConcurrencyDropbox
Merging same-URL downloads
In a photo grid, several cells request the same photo URL at the same time, but the network download must happen only once. How would you keep in-flight Tasks inside an actor to merge the requests?
Merging same-URL downloads
In a photo grid, several cells request the same photo URL at the same time, but the network download must happen only once. How would you keep in-flight Tasks inside an actor to merge the requests?
ConcurrencyShort answerBasics
This code gets called from several threads, and count comes out lower than expected. Can …
#actor
ConcurrencyShort answerBasics
In Swift Concurrency, when you create a Task { }, when and where does that code run?
#task
ConcurrencyShort answerExpert
This image cache actor built with Swift Concurrency sometimes sends two network requests …
#actor
ConcurrencyMultiple choiceAdvanced
Under Swift 6 strict concurrency, which of the following are treated as Sendable (or adop…
#actor