Top Description Methods
io.reactivex.rxjava3.core

public Interface SingleOnSubscribe<T>

Annotations
@FunctionalInterface
Type Parameters
<T>
the value type pushed
Imports
io.reactivex.rxjava3.annotations.NonNull

A functional interface that has a subscribe() method that receives a SingleEmitter instance that allows pushing an event in a cancellation-safe manner.

Method Summary

Modifier and TypeMethod and Description
public void
subscribe(@NonNull SingleEmitter<T>
the safe emitter instance, never null
emitter
)

Called for each SingleObserver that subscribes.

Method Detail

subscribeback to summary
public void subscribe(@NonNull SingleEmitter<T> emitter) throws Throwable

Called for each SingleObserver that subscribes.

Parameters
emitter:@NonNull SingleEmitter<T>

the safe emitter instance, never null

Exceptions
Throwable:
on error