Memory and ARC
Task and self capture
After moving to Swift Concurrency, your team is arguing about whether you always need [weak self] inside Task { }. When is it unnecessary, and in which Tasks is it required?
Task and self capture
After moving to Swift Concurrency, your team is arguing about whether you always need [weak self] inside Task { }. When is it unnecessary, and in which Tasks is it required?
ConcurrencyShort answerBasics
When the user enters the detail screen, it calls an API like this and shows the data. … T…
#task #weak-self #cancellation
Memory and ARCMultiple choiceBasics
Which of these two snippets creates a reference cycle? …
#weak-self #capture
ConcurrencyShort answerBasics
In Swift Concurrency, when you create a Task { }, when and where does that code run?
#task #cancellation
ConcurrencyMultiple choiceExpert
In this Swift Concurrency code, which statement about what actually happens right after t…
#task #cancellation