Class ObservableAmb.AmbCoordinator<T>
java.lang.Object
io.reactivex.rxjava3.internal.operators.observable.ObservableAmb.AmbCoordinator<T>
- All Implemented Interfaces:
Disposable
- Enclosing class:
ObservableAmb<T>
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) final ObservableAmb.AmbInnerObserver<T>[](package private) final AtomicInteger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddispose()Dispose the resource, the operation should be idempotent.booleanReturns true if this resource has been disposed.voidsubscribe(ObservableSource<? extends T>[] sources) booleanwin(int index)
-
Field Details
-
downstream
-
observers
-
winner
-
-
Constructor Details
-
AmbCoordinator
-
-
Method Details
-
subscribe
-
win
public boolean win(int index) -
dispose
public void dispose()Description copied from interface:DisposableDispose the resource, the operation should be idempotent.- Specified by:
disposein interfaceDisposable
-
isDisposed
public boolean isDisposed()Description copied from interface:DisposableReturns true if this resource has been disposed.- Specified by:
isDisposedin interfaceDisposable- Returns:
- true if this resource has been disposed
-