Top Description Methods
io.reactivex.rxjava3.core

public Interface SingleSource<T>

Known Direct Implementers
io.reactivex.rxjava3.core.Single
Annotations
@FunctionalInterface
Type Parameters
<T>
the element type
Imports
io.reactivex.rxjava3.annotations.NonNull

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(@NonNull SingleObserver<? super T>
the SingleObserver, not null
observer
)

Subscribes the given SingleObserver to this SingleSource instance.

Method Detail

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

Subscribes the given SingleObserver to this SingleSource instance.

Parameters
observer:@NonNull SingleObserver<? super T>

the SingleObserver, not null

Exceptions
NullPointerException:
if observer is null