Observable

An observable sequence is just a sequence. The key advantage of an observable sequence over Swift's standard sequence type is that it can also operate asynchronously. Before getting our hands dirty with the code where we will see the observable sequences in action, it is important to understand the lifecycle of an Observable sequence and what it does during that lifetime.

Lifecycle of an observable:

An observable sequence can emit things known as events. It can emit zero or more events; when a value or collection of values is added to or put onto a sequence, it will send a next event containing that value or collection to its observers. This is known as emitting, and the values are referred to as elements. This works the same way ...

Get Reactive Programming with Swift 4 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.