From the course: Learning Combine with Swift
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Challenge: Call an API using schedulers and backpressure - Swift Tutorial
From the course: Learning Combine with Swift
Challenge: Call an API using schedulers and backpressure
(soft music) - [Instructor] It is time for our final challenge, where you are going to hone in two of the concepts learned this chapter, backpressure and scheduler, to ingest a simple arithmetic sequence publisher. In this challenge, you will create a delay of three seconds on the publisher before the subscriber consumes. We will also implement backpressure through a custom subscriber, although we won't restrict how many items we receive just yet. Afterward, you can experiment and toggle the threshold and observe the results. Let's begin.
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
(Locked)
Manage threads with schedulers4m 24s
-
(Locked)
Work with custom publishers and subscribers4m 45s
-
(Locked)
Throttle publisher data with backpressure4m 53s
-
(Locked)
Abstract Combine implementations with type erasures2m 8s
-
(Locked)
Leverage the Combine advanced operators5m 5s
-
(Locked)
Challenge: Call an API using schedulers and backpressure39s
-
(Locked)
Solution: Call an API using schedulers and backpressure2m 44s
-
(Locked)
-