T - the element typepublic interface SingleSource<T>
Single source base interface,
consumable via an SingleObserver.
This class also serves the base type for custom operators wrapped into
Single via Single.create(SingleOnSubscribe).
| Modifier and Type | Method and Description |
|---|---|
void |
subscribe(SingleObserver<? super T> observer)
Subscribes the given SingleObserver to this SingleSource instance.
|
void subscribe(@NonNull SingleObserver<? super T> observer)
observer - the SingleObserver, not nullNullPointerException - if observer is null