Subscribes the given observer to this object.
Object which can be used to unsubscribe the observer.
Constructs a new observer using the given callback functions and subscribes it to this object.
Receives the next value in the sequence.
Optional
error: (error: Error) => voidReceives the sequence error.
Optional
complete: () => voidReceives a completion notification.
Object which can be used to unsubscribe the observer.
Interface for subscribable objects.