Slide 18
Slide 18 text
Subscribing for Data, Error, And
Completion
[1,2,3,4,5,6]
.toObservable()
.subscribe(onNext: { (intValue) -> Void in
// Pumped out an int
}, onError: { (error) -> Void in
// ERROR!
}, onCompleted: { () -> Void in
// There are no more signals
}) { () -> Void in
// We disposed this subscription
}