Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 51 for finished (0.17 sec)

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

        assertThat(stopwatch.elapsed(MILLISECONDS)).isIn(Range.closed(NOT_ENOUGH_MS, DELAY_MS * 2));
        // Is it still computing away anyway?
        assertThat(target.finished).isFalse();
        MILLISECONDS.sleep(ENOUGH_MS);
        assertThat(target.finished).isFalse();
      }
    
      public void testNewProxy_badMethodWithEnoughTime() throws Exception {
        SampleImpl target = new SampleImpl(DELAY_MS);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 9.5K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/util/concurrent/SimpleTimeLimiterTest.java

        assertThat(stopwatch.elapsed(MILLISECONDS)).isIn(Range.closed(NOT_ENOUGH_MS, DELAY_MS * 2));
        // Is it still computing away anyway?
        assertThat(target.finished).isFalse();
        MILLISECONDS.sleep(ENOUGH_MS);
        assertThat(target.finished).isFalse();
      }
    
      public void testNewProxy_badMethodWithEnoughTime() throws Exception {
        SampleImpl target = new SampleImpl(DELAY_MS);
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 9.5K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/util/concurrent/JdkFutureAdaptersTest.java

        assertFalse(singleCallListener.wasCalled());
        assertTrue(listenableFuture.isDone()); // We call AbstractFuture#set above.
    
        // #addListener() will run the listener immediately because the Future is
        // already finished (we explicitly set the result of it above).
        listenableFuture.addListener(singleCallListener, directExecutor());
        assertEquals(DATA1, listenableFuture.get());
    
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Feb 09 22:57:07 GMT 2022
    - 9.7K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/util/concurrent/MoreExecutors.java

       *
       * <p>This method waits 120 seconds before continuing with JVM termination, even if the executor
       * has not finished its work.
       *
       * <p>This is mainly for fixed thread pools. See {@link Executors#newFixedThreadPool(int)}.
       *
       * @param executor the executor to modify to make sure it exits when the application is finished
       * @return an unmodifiable version of the input which will not hang the JVM
       */
      @J2ktIncompatible
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Apr 17 16:33:44 GMT 2024
    - 41.8K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/eventbus/DispatcherTest.java

                s1,
                s2, // those string subscribers aren't actually dispatched to until all integer
                s1,
                s2 // subscribers have finished.
                )
            .inOrder();
      }
    
      public void testLegacyAsyncDispatcher() {
        dispatcher = Dispatcher.legacyAsync();
    
        final CyclicBarrier barrier = new CyclicBarrier(2);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Apr 27 15:41:25 GMT 2022
    - 5.6K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/util/concurrent/AggregateFutureState.java

          // be a definite performance hit to those users.
          thrownReflectionFailure = reflectionFailure;
          helper = new SynchronizedAtomicHelper();
        }
        ATOMIC_HELPER = helper;
        // Log after all static init is finished; if an installed logger uses any Futures methods, it
        // shouldn't break in cases where reflection is missing/broken.
        if (thrownReflectionFailure != null) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Dec 14 20:35:03 GMT 2023
    - 8.5K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/util/concurrent/ClosingFuture.java

     * to be closed asynchronously <b>after</b> the returned {@code Future} is done: the future
     * completes before closing starts, rather than once it has finished.
     *
     * <pre>{@code
     * FluentFuture<UserName> userName =
     *     ClosingFuture.submit(
     *             closer -> closer.eventuallyClose(database.newTransaction(), closingExecutor),
     *             executor)
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 98.5K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/eventbus/DispatcherTest.java

                s1,
                s2, // those string subscribers aren't actually dispatched to until all integer
                s1,
                s2 // subscribers have finished.
                )
            .inOrder();
      }
    
      public void testLegacyAsyncDispatcher() {
        dispatcher = Dispatcher.legacyAsync();
    
        final CyclicBarrier barrier = new CyclicBarrier(2);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 27 15:41:25 GMT 2022
    - 5.6K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/io/ReaderInputStream.java

       * draining it is flipped (undrained bytes between position and limit).
       */
      private ByteBuffer byteBuffer;
    
      /** Whether we've finished reading the reader. */
      private boolean endOfInput;
      /** Whether we're copying encoded bytes to the caller's buffer. */
      private boolean draining;
      /** Whether we've successfully flushed the encoder. */
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 28 20:13:02 GMT 2023
    - 9.3K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/util/concurrent/AbstractServiceTest.java

         * its own "running" check.
         */
        void awaitRunChecks() throws InterruptedException {
          assertTrue(
              "Service thread hasn't finished its checks. "
                  + "Exception status (possibly stale): "
                  + thrownByExecutionThread,
              hasConfirmedIsRunning.await(10, SECONDS));
        }
    
        @Override
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 29.3K bytes
    - Viewed (0)
Back to top