How async/await works
In Swift Concurrency, what actually happens when execution hits an await, and how is that different from blocking a thread?
In Swift Concurrency, what actually happens when execution hits an await, and how is that different from blocking a thread?
await suspends the function and gives the thread back to the pool, then resumes through a continuation once the result is ready. Unlike blocking a thread, it handles thousands of tasks with as many threads as there are cores.
ConcurrencyShort answerAdvanced
You have an old networking layer built on completion handlers, called from hundreds of…
#async-await #continuation
NetworkingShort answerBasics
In a coding screen the company hands you completion-handler-based networking code and a…
#async-await #continuation
ConcurrencyShort answerAdvanced
You've been asked to move a large app written with completion handlers and GCD to Swift 6…
#completion-handler
ConcurrencyMultiple choiceIntro
In Swift Concurrency, if fetchProfile() and fetchFeed() each take 1 second, which…
#async-await