Previous episode: 07. Challenge: Fetch Data Over the Network
Next episode: 09. Introduction
Get immediate access to this and 4,000+ other videos and books.
Take your career further with a Kodeco Personal Plan. With unlimited access to over 40+ books and
4,000+ professional videos in a single subscription, it's simply the best investment you can make in
your development career.
At this point, you've made it through the first part. Congrats. We started this part by giving an overview of concurrency. Concurrency is incredibly important at providing a responsive experience to the user. It allows the user to do other things while you're fetching data in the background and Swift Concurrency features simplify this for you. You were also introduced to URL session and learned that a session is composed of many different components. There's a configuration object that allows you to customize how the session works. There's also data tasks that actually do the fetch operation. The session manages both the configuration and task. Sessions work best when using multiple tasks. So you should aim to group your tasks together around one URL session versus creating a new URL session for each task. You can also quickly access URL session by using the shared property. This is great for simple requests but it doesn't provide any means to configure this session. You're just getting started, however. In Part 2 of the course, you will dive deeper into data transfers, learn how to handle errors in requests, show download progress, group requests, pause, resume, and cancel downloads.
All videos. All books.
One low price.
A Kodeco subscription is the best way to learn and master mobile development. Learn iOS, Swift, Android, Kotlin, Flutter and Dart development and unlock our massive catalog of 50+ books and 4,000+ videos.