Class ObservableAmb.AmbCoordinator<T>

  • All Implemented Interfaces:
    Disposable
    Enclosing class:
    ObservableAmb<T>

    static final class ObservableAmb.AmbCoordinator<T>
    extends java.lang.Object
    implements Disposable
    • Constructor Detail

      • AmbCoordinator

        AmbCoordinator​(Observer<? super T> actual,
                       int count)
    • Method Detail

      • win

        public boolean win​(int index)
      • dispose

        public void dispose()
        Description copied from interface: Disposable
        Dispose the resource, the operation should be idempotent.
        Specified by:
        dispose in interface Disposable
      • isDisposed

        public boolean isDisposed()
        Description copied from interface: Disposable
        Returns true if this resource has been disposed.
        Specified by:
        isDisposed in interface Disposable
        Returns:
        true if this resource has been disposed