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 ...