test_class.declarator: fo
test_class.original_string: FutureObserver<Integer> fo;
test_class.type: FutureObserver<Integer>
test_class.var_name: fo
test_class.file: rxjava/src/test/java/io/reactivex/internal/observers/FutureObserverTest.java
test_class.identifier: FutureObserverTest
test_case.body: @Test
      public void cancelRace() {
          for (int i = 0; i < TestHelper.RACE_DEFAULT_LOOPS; i++) {
              final FutureSubscriber<Integer> fo = new FutureSubscriber<Integer>();
  
              Runnable r = new Runnable() {
                  @Override
                  public void run() {
                      fo.cancel(false);
                  }
              };
  
              TestHelper.race(r, r);
          }
      }
test_case.class_method_signature: FutureObserverTest.cancelRace()
test_case.full_signature: @Test public void cancelRace()
test_case.identifier: cancelRace
test_case.invocations: cancel race
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void cancelRace()
focal_class.declarator: value
focal_class.original_string: T value;
focal_class.type: T
focal_class.var_name: value
focal_class.declarator: error
focal_class.original_string: Throwable error;
focal_class.type: Throwable
focal_class.var_name: error
focal_class.declarator: s
focal_class.modifier: final
focal_class.original_string: final AtomicReference<Disposable> s;
focal_class.type: AtomicReference<Disposable>
focal_class.var_name: s
focal_class.file: rxjava/src/main/java/io/reactivex/internal/observers/FutureObserver.java
focal_class.identifier: FutureObserver
focal_class.interfaces: implements Observer<T>, Future<T>, Disposable
focal_class.class_method_signature: FutureObserver.FutureObserver()
focal_class.full_signature: public  FutureObserver()
focal_class.identifier: FutureObserver
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.signature:  FutureObserver()
focal_class.class_method_signature: FutureObserver.cancel(boolean mayInterruptIfRunning)
focal_class.full_signature: @Override public boolean cancel(boolean mayInterruptIfRunning)
focal_class.identifier: cancel
focal_class.modifiers: @Override public
focal_class.parameters: (boolean mayInterruptIfRunning)
focal_class.return: boolean
focal_class.signature: boolean cancel(boolean mayInterruptIfRunning)
focal_class.class_method_signature: FutureObserver.isCancelled()
focal_class.full_signature: @Override public boolean isCancelled()
focal_class.identifier: isCancelled
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isCancelled()
focal_class.class_method_signature: FutureObserver.isDone()
focal_class.full_signature: @Override public boolean isDone()
focal_class.identifier: isDone
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isDone()
focal_class.class_method_signature: FutureObserver.get()
focal_class.full_signature: @Override public T get()
focal_class.identifier: get
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: T
focal_class.signature: T get()
focal_class.class_method_signature: FutureObserver.get(long timeout, TimeUnit unit)
focal_class.full_signature: @Override public T get(long timeout, TimeUnit unit)
focal_class.identifier: get
focal_class.modifiers: @Override public
focal_class.parameters: (long timeout, TimeUnit unit)
focal_class.return: T
focal_class.signature: T get(long timeout, TimeUnit unit)
focal_class.class_method_signature: FutureObserver.onSubscribe(Disposable s)
focal_class.full_signature: @Override public void onSubscribe(Disposable s)
focal_class.identifier: onSubscribe
focal_class.modifiers: @Override public
focal_class.parameters: (Disposable s)
focal_class.return: void
focal_class.signature: void onSubscribe(Disposable s)
focal_class.class_method_signature: FutureObserver.onNext(T t)
focal_class.full_signature: @Override public void onNext(T t)
focal_class.identifier: onNext
focal_class.modifiers: @Override public
focal_class.parameters: (T t)
focal_class.return: void
focal_class.signature: void onNext(T t)
focal_class.class_method_signature: FutureObserver.onError(Throwable t)
focal_class.full_signature: @Override public void onError(Throwable t)
focal_class.identifier: onError
focal_class.modifiers: @Override public
focal_class.parameters: (Throwable t)
focal_class.return: void
focal_class.signature: void onError(Throwable t)
focal_class.class_method_signature: FutureObserver.onComplete()
focal_class.full_signature: @Override public void onComplete()
focal_class.identifier: onComplete
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void onComplete()
focal_class.class_method_signature: FutureObserver.dispose()
focal_class.full_signature: @Override public void dispose()
focal_class.identifier: dispose
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void dispose()
focal_class.class_method_signature: FutureObserver.isDisposed()
focal_class.full_signature: @Override public boolean isDisposed()
focal_class.identifier: isDisposed
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isDisposed()
focal_class.superclass: extends CountDownLatch
focal_method.body: @Override
      public boolean cancel(boolean mayInterruptIfRunning) {
          for (;;) {
              Disposable a = s.get();
              if (a == this || a == DisposableHelper.DISPOSED) {
                  return false;
              }
  
              if (s.compareAndSet(a, DisposableHelper.DISPOSED)) {
                  if (a != null) {
                      a.dispose();
                  }
                  countDown();
                  return true;
              }
          }
      }
focal_method.class_method_signature: FutureObserver.cancel(boolean mayInterruptIfRunning)
focal_method.full_signature: @Override public boolean cancel(boolean mayInterruptIfRunning)
focal_method.identifier: cancel
focal_method.invocations: get compareAndSet dispose countDown
focal_method.modifiers: @Override public
focal_method.parameters: (boolean mayInterruptIfRunning)
focal_method.return: boolean
focal_method.signature: boolean cancel(boolean mayInterruptIfRunning)