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

Challenge: Call an API using schedulers and backpressure - Swift Tutorial

From the course: Learning Combine with Swift

Start my 1-month free trial

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.

Contents