T - the element type@FunctionalInterface public 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(@NonNull SingleObserver<? super T> observer)
Subscribes the given
SingleObserver to this SingleSource instance. |
void subscribe(@NonNull @NonNull SingleObserver<? super T> observer)
SingleObserver to this SingleSource instance.observer - the SingleObserver, not nullNullPointerException - if observer is null