Top Description Methods
io.reactivex

public Interface SingleSource<T>

Known Direct Implementers
io.reactivex.Single
Type Parameters
<T>
the element type
Imports
io.reactivex.annotations.*

Represents a basic 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).

Since
2.0

Method Summary

Modifier and TypeMethod and Description
public void
subscribe(SingleObserver<? super T>
the SingleObserver, not null
observer
)

Subscribes the given SingleObserver to this SingleSource instance.

Method Detail

subscribeback to summary
public void subscribe(SingleObserver<? super T> observer)

Subscribes the given SingleObserver to this SingleSource instance.

Parameters
observer:SingleObserver<? super T>

the SingleObserver, not null

Exceptions
NullPointerException:
if observer is null