Quiz
Fetching REST Data with URLSession
Understand how URLSession.dataTask retrieves REST data and why the completion handler runs off the main thread.
You call URLSession.shared.dataTask(with:) to fetch JSON from a REST endpoint, decode it, and then update a UILabel inside the completion handler. What is the key mistake to avoid?