Package rx.internal.operators
Class CompletableOnSubscribeMerge
java.lang.Object
rx.internal.operators.CompletableOnSubscribeMerge
- All Implemented Interfaces:
Completable.CompletableOnSubscribe,Action,Action1<Completable.CompletableSubscriber>,Function
public final class CompletableOnSubscribeMerge
extends Object
implements Completable.CompletableOnSubscribe
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static final class -
Field Summary
FieldsModifier and TypeFieldDescription(package private) final boolean(package private) final int(package private) final Observable<Completable> -
Constructor Summary
ConstructorsConstructorDescriptionCompletableOnSubscribeMerge(Observable<? extends Completable> source, int maxConcurrency, boolean delayErrors) -
Method Summary
Modifier and TypeMethodDescriptionvoidstatic ThrowableCollects the Throwables from the queue, adding subsequent Throwables as suppressed to the first Throwable and returns it.
-
Field Details
-
source
-
maxConcurrency
final int maxConcurrency -
delayErrors
final boolean delayErrors
-
-
Constructor Details
-
CompletableOnSubscribeMerge
public CompletableOnSubscribeMerge(Observable<? extends Completable> source, int maxConcurrency, boolean delayErrors)
-
-
Method Details
-
call
- Specified by:
callin interfaceAction1<Completable.CompletableSubscriber>
-
collectErrors
Collects the Throwables from the queue, adding subsequent Throwables as suppressed to the first Throwable and returns it.- Parameters:
q- the queue to drain- Returns:
- the Throwable containing all other Throwables as suppressed
-