Join Jon Bott for an in-depth discussion in this video Subjects, part 2, part of RxSwift: Design Patterns for iOS Developers.
- [Instructor] So next, let's start trying to trigger…those other events on the subjects.…So I'll put…one on error,…so we can look at these different examples…as they work together.…And we'll say, let customError is equal to…customError dot, we'll say it's a forcedError,…we're just faking one here for right now.…And we will push this into the behavior subject…by the onError method.…
And what I want you to see here is that…another onNext, we'll say 109,…that this will never show.…As soon as subjects and observables error out,…their subscriptions don't get any other advance,…other than that there was an error, that is completed.…So you don't get any onNext events.…And I want to put in here too, that this will also trigger…the dispose…event.…
And we'll see this when we run this example again.…And you can see in here, we got our 48 and then,…this operation couldn't be completed.…We got our custom error and we get the disposed event.…So we don't even get an onCompleted.…We just get the error event and the disposed event.…
- RxSwift syntax
- Creating simple observables
- Architecting the model layer
- Using Core Data
- Grouping tasks
- Changing UI
- Threading in the model and UI
Skill Level Intermediate
Learning Server-Side Swift Using IBM Kiturawith Mohammad Azam1h 51m Intermediate
Swift 4: Protocol-Oriented Programmingwith Károly Nyisztor1h 44m Intermediate
Swift: Writing Reusable Frameworkswith David Okun1h 49m Intermediate
1. The Basics
2. Model Layer
3. Presenter and View
Next steps1m 17s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
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.