Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 11 - 20 of 73 for isHoge (0.05 seconds)

  1. guava-tests/test/com/google/common/util/concurrent/ListenableFutureTester.java

        assertTrue(future.isDone());
        assertFalse(future.isCancelled());
    
        assertEquals(expectedValue, future.get());
      }
    
      public void testCancelledFuture() throws InterruptedException, ExecutionException {
        assertTrue(future.isDone());
        assertTrue(future.isCancelled());
    
        assertTrue(latch.await(5, SECONDS));
        assertTrue(future.isDone());
        assertTrue(future.isCancelled());
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 3.3K bytes
    - Click Count (0)
  2. guava-tests/test/com/google/common/util/concurrent/ListenableFutureTaskTest.java

        assertFalse(task.isDone());
        assertFalse(task.isCancelled());
    
        // Start the task to put it in the RUNNING state.  Have to use a separate
        // thread because the task will block on the task latch after unblocking
        // the run latch.
        exec.execute(task);
        runLatch.await();
        assertEquals(1, listenerLatch.getCount());
        assertFalse(task.isDone());
        assertFalse(task.isCancelled());
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 4.7K bytes
    - Click Count (0)
  3. guava-tests/test/com/google/common/util/concurrent/JdkFutureAdaptersTest.java

        assertFalse(listenableFuture.isDone());
    
        listenableFuture.addListener(singleCallListener, executorService);
        abstractFuture.set(DATA1);
        assertThat(listenableFuture.get()).isEqualTo(DATA1);
        singleCallListener.waitForCall();
    
        assertTrue(spy.wasExecuted);
        assertTrue(singleCallListener.wasCalled());
        assertTrue(listenableFuture.isDone());
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 10K bytes
    - Click Count (0)
  4. guava-tests/test/com/google/common/util/concurrent/SettableFutureTest.java

        assertFalse(future.setFuture(SettableFuture.create()));
        // Check that the future has been set properly.
        assertFalse(future.isDone());
        assertFalse(future.isCancelled());
        assertThrows(TimeoutException.class, () -> future.get(0, MILLISECONDS));
        nested.set("foo");
        assertTrue(future.isDone());
        assertFalse(future.isCancelled());
        assertThat(future.get()).isEqualTo("foo");
      }
    
      private static class Foo {}
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 7.4K bytes
    - Click Count (0)
  5. android/guava-testlib/src/com/google/common/util/concurrent/testing/AbstractListenableFutureTest.java

        }
      }
    
      /**
       * Tests that a canceled future throws a cancellation exception.
       *
       * <p>This method checks the cancel, isCancelled, and isDone methods.
       */
      public void testCanceledFutureThrowsCancellation() throws Exception {
    
        assertFalse(future.isDone());
        assertFalse(future.isCancelled());
    
        CountDownLatch successLatch = new CountDownLatch(1);
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Jul 11 18:52:30 GMT 2025
    - 6.1K bytes
    - Click Count (0)
  6. android/guava-testlib/src/com/google/common/testing/GcFinalization.java

      }
    
      /**
       * Waits until the given future {@linkplain Future#isDone is done}, invoking the garbage collector
       * as necessary to try to ensure that this will happen.
       *
       * @throws RuntimeException if timed out or interrupted while waiting
       */
      @SuppressWarnings("removal") // b/487687332
      public static void awaitDone(Future<?> future) {
        if (future.isDone()) {
          return;
        }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 20:19:19 GMT 2026
    - 12.3K bytes
    - Click Count (0)
  7. android/guava-tests/test/com/google/common/util/concurrent/JdkFutureAdaptersTest.java

        assertFalse(listenableFuture.isDone());
    
        listenableFuture.addListener(singleCallListener, executorService);
        abstractFuture.set(DATA1);
        assertThat(listenableFuture.get()).isEqualTo(DATA1);
        singleCallListener.waitForCall();
    
        assertTrue(spy.wasExecuted);
        assertTrue(singleCallListener.wasCalled());
        assertTrue(listenableFuture.isDone());
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 10K bytes
    - Click Count (0)
  8. android/guava-tests/test/com/google/common/util/concurrent/AbstractFutureTest.java

              () -> {
                future.set("success");
                if (!future.isDone()) {
                  errorMessage.set("Set call exited before future was complete.");
                }
              });
          executor.execute(
              () -> {
                future.setException(new IllegalArgumentException("failure"));
                if (!future.isDone()) {
                  errorMessage.set("SetException call exited before future was complete.");
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 45.2K bytes
    - Click Count (0)
  9. android/guava/src/com/google/common/util/concurrent/ForwardingFluentFuture.java

        return delegate.cancel(mayInterruptIfRunning);
      }
    
      @Override
      public boolean isCancelled() {
        return delegate.isCancelled();
      }
    
      @Override
      public boolean isDone() {
        return delegate.isDone();
      }
    
      @Override
      @ParametricNullness
      public V get() throws InterruptedException, ExecutionException {
        return delegate.get();
      }
    
      @Override
      @ParametricNullness
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sat Mar 07 14:39:00 GMT 2026
    - 3.1K bytes
    - Click Count (0)
  10. android/guava-tests/test/com/google/common/util/concurrent/AbstractListeningExecutorServiceTest.java

        assertThat(runnableFuture).isInstanceOf(TrustedListenableFutureTask.class);
        assertTrue(runnableFuture.isDone());
        assertTrue(runnable.run);
    
        ListenableFuture<String> callableFuture = e.submit(new TestCallable());
        assertThat(callableFuture).isInstanceOf(TrustedListenableFutureTask.class);
        assertTrue(callableFuture.isDone());
        assertThat(callableFuture.get()).isEqualTo("foo");
    
        TestRunnable runnable2 = new TestRunnable();
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 3.4K bytes
    - Click Count (0)
Back to Top