subscribe
Subscribes the given observer to receive updates, including an Observer.onComplete notification when the upstream source terminates.
Use this overload when you need to react to completion — for example when composing operators or when the subscription represents a finite sequence.
Return
A Disposable for cancelling the subscription.
Parameters
The observer to receive values and the completion signal.
Subscribes the given onNext to receive updates, where no Observer.onComplete is required.
Use this overload when you don't need to react to completion.
Return
A Disposable for cancelling the subscription.
Parameters
The Consumer to receive emitted values.
Subscribes the given onNext to receive updates, and the given onComplete to receive the Observer.onComplete signal
Use this overload when you need to react to both emitted values and completion.
Return
A Disposable for cancelling the subscription.
Parameters
The Consumer to receive emitted values.
The block of code to run upon completion