Top Description Methods
io.reactivex.rxjava3.core

public Interface MaybeOnSubscribe<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 MaybeEmitter instance that allows pushing an event in a cancellation-safe manner.

Method Summary

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

Called for each MaybeObserver that subscribes.

Method Detail

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

Called for each MaybeObserver that subscribes.

Parameters
emitter:@NonNull MaybeEmitter<T>

the safe emitter instance, never null

Exceptions
Throwable:
on error