In this video, review the solution to the challenge, with a fully working Combine solution to call a static JSON endpoint.
(upbeat music) … - How did you do? … This is how I solved the challenge. … The first thing I did in order to create a publisher … and associate it with an array is go to line 15. … Enter the following let publisher … equal array dot publisher. … Now I need to create a subscriber. … So go to line 17 and answer the following. … Let subscriber equal publisher … dot assign … to backspace … dot … is enabled … on text field. … Below that, just so we can track … where the text field does change, … we will need to add a publisher. … So let's go ahead and do that underneath our previous code. … Text field … dot publisher … for … backspace … dot … is enabled … dot … sink … and in curly brackets … and curly brackets we're going to enter print … parenthesis dollar zero, close parenthesis, … close curly brackets. … Finally, we need to create an operator … that skips the first two elements … using the operator drop First, … let's go ahead and do that. … Go to line 20 and enter the following. … Let's underscore …
- Functional reactive programming techniques
- Transmitting data with publishers
- Consuming data with subscribers
- Publishing data
- Creating a simple Combine data stream
- Calling REST APIs
- Handling errors
- Using testing
- Managing threads with schedulers
- Throttling publisher data
- Leveraging advanced operators
Skill Level Advanced
1. Introduction to Combine
2. Combine Fundamentals
3. Work with REST APIs
4. Advanced Concepts
Go forth and code1m 31s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.