Structured cancellation
When the search query changes, the previous search's network, decoding, and image work all have to stop. How would you structure the task tree using cancellation propagation from parent Task to child Tasks?
Structured cancellation
When the search query changes, the previous search's network, decoding, and image work all have to stop. How would you structure the task tree using cancellation propagation from parent Task to child Tasks?
ConcurrencyMultiple choiceAdvanced
Which of the following statements about structured concurrency (async let, TaskGroup) are…
#cancellation #structured-concurrency
ConcurrencyShort answerAdvanced
You're given an array of image ids [3, 1, 2]. Download each image concurrently, but displ…
#cancellation #structured-concurrency
ConcurrencyShort answerBasics
Calling the API on every keystroke in a search field floods it with requests. Can you imp…
#cancellation #search
iOS system designShort answerBasics
Design the search screen of a music app: autocomplete while typing, a results list, and r…
#cancellation #search