public final class CompletableTransformers extends Object
CompletableTransformer
,
use Completable.compose(CompletableTransformer)
to apply the operators to an existing sequence.Completables
Modifier and Type | Method and Description |
---|---|
static CompletableTransformer |
flatMap(Supplier<? extends CompletableSource> onCompleteHandler,
Function<? super Throwable,? extends CompletableSource> onErrorHandler)
Maps the terminal signals of the upstream into
CompletableSource s and
subscribes to it, relaying its terminal events to the downstream. |
public static CompletableTransformer flatMap(Supplier<? extends CompletableSource> onCompleteHandler, Function<? super Throwable,? extends CompletableSource> onErrorHandler)
CompletableSource
s and
subscribes to it, relaying its terminal events to the downstream.onCompleteHandler
- called when the upstream completes normally and should return
the CompletableSource to continue with.onErrorHandler
- called when the upstream fails and should return the
CompletableSource for the given Throwable instance to continue with.