In Combine, publishers distribute elements to one or more subscribers that it accepts, through the extension of operators, to create data event chains. In this video, go through the fundamentals of a publisher including the protocol, functionality, and purpose.
- [Instructor] Publishers in essence, … provide a sequence of data streams over time … and when available, upon request. … Publishers are at the heart of Combine. … Let's dive deeper. … The Publisher Protocol sets forth a contract … to transmit sequences of values over time … for the subscribers to listen to. … The protocol only has two possible outcomes, … outputs and failure. … This is in contrast to subscribers, … which you will learn about later on, … which declares input and failure. … Values are transmitted in sequence over time, … but only if one or more subscribers are created … to listen for those values. … If there are no subscribers, the publisher terminates. … Think of this in another way. … A publisher's data stream can terminate, … is through an explicit completion signal. … Let's visualize this once more. … You have a publisher and a subscriber counterpart. … The publisher produces output … and the subscriber listens for input. … Both subscriber and publisher … need to be speaking the same language, …
- 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.