Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 1,401 for futuna (0.18 sec)

  1. android/guava-testlib/test/com/google/common/util/concurrent/testing/TestingExecutorsTest.java

                return taskDone;
              }
            };
        List<Future<Boolean>> futureList =
            executor.invokeAll(ImmutableList.of(task), 10, TimeUnit.MILLISECONDS);
        Future<Boolean> future = futureList.get(0);
        assertFalse(taskDone);
        assertTrue(future.isDone());
        assertThrows(CancellationException.class, () -> future.get());
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  2. guava-testlib/test/com/google/common/util/concurrent/testing/TestingExecutorsTest.java

                return taskDone;
              }
            };
        List<Future<Boolean>> futureList =
            executor.invokeAll(ImmutableList.of(task), 10, TimeUnit.MILLISECONDS);
        Future<Boolean> future = futureList.get(0);
        assertFalse(taskDone);
        assertTrue(future.isDone());
        assertThrows(CancellationException.class, () -> future.get());
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/util/concurrent/Futures.java

       * completes. Cancelling the supplied future will also cancel the returned future, but cancelling
       * the returned future will have no effect on the supplied future.
       *
       * @since 15.0
       */
      public static <V extends @Nullable Object> ListenableFuture<V> nonCancellationPropagating(
          ListenableFuture<V> future) {
        if (future.isDone()) {
          return future;
        }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Apr 01 16:15:01 UTC 2024
    - 59.6K bytes
    - Viewed (0)
  4. guava/src/com/google/common/util/concurrent/FluentFuture.java

      }
    
      /**
       * Returns a new {@code Future} whose result is asynchronously derived from the result of this
       * {@code Future}. If the input {@code Future} fails, the returned {@code Future} fails with the
       * same exception (and the function is not invoked).
       *
       * <p>More precisely, the returned {@code Future} takes its result from a {@code Future} produced
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Apr 11 19:08:44 UTC 2023
    - 19.6K bytes
    - Viewed (0)
  5. guava/src/com/google/common/util/concurrent/Futures.java

       * completes. Cancelling the supplied future will also cancel the returned future, but cancelling
       * the returned future will have no effect on the supplied future.
       *
       * @since 15.0
       */
      public static <V extends @Nullable Object> ListenableFuture<V> nonCancellationPropagating(
          ListenableFuture<V> future) {
        if (future.isDone()) {
          return future;
        }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Apr 01 16:15:01 UTC 2024
    - 64.1K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/util/concurrent/MoreExecutorsTest.java

        future = service.scheduleAtFixedRate(runnable, 5, 5, TimeUnit.MINUTES);
        future.cancel(true);
        assertTrue(future.isCancelled());
        delegateFuture = (ScheduledFuture<?>) delegateQueue.element();
        assertTrue(delegateFuture.isCancelled());
    
        delegateQueue.clear();
    
        future = service.scheduleWithFixedDelay(runnable, 5, 5, TimeUnit.MINUTES);
        future.cancel(true);
        assertTrue(future.isCancelled());
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 28.2K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/util/concurrent/AggregateFuture.java

          @CheckForNull
              ImmutableCollection<? extends Future<? extends InputT>>
                  futuresIfNeedToCollectAtCompletion) {
        if (futuresIfNeedToCollectAtCompletion != null) {
          int i = 0;
          for (Future<? extends InputT> future : futuresIfNeedToCollectAtCompletion) {
            if (!future.isCancelled()) {
              collectValueFromNonCancelledFuture(i, future);
            }
            i++;
          }
        }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 01 21:46:34 UTC 2024
    - 15.4K bytes
    - Viewed (0)
  8. guava-gwt/test-super/com/google/common/util/concurrent/super/com/google/common/util/concurrent/TestPlatform.java

        // There is no thread interruption in GWT, so there's nothing to do.
      }
    
      static <V> V getDoneFromTimeoutOverload(Future<V> future) throws ExecutionException {
        checkState(future.isDone(), "Future was expected to be done: %s", future);
        try {
          return future.get(0, SECONDS);
        } catch (InterruptedException e) {
          throw new AssertionError();
        } catch (TimeoutException e) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Nov 26 19:19:13 UTC 2018
    - 2.3K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/util/concurrent/MoreExecutorsTest.java

        future = service.scheduleAtFixedRate(runnable, 5, 5, TimeUnit.MINUTES);
        future.cancel(true);
        assertTrue(future.isCancelled());
        delegateFuture = (ScheduledFuture<?>) delegateQueue.element();
        assertTrue(delegateFuture.isCancelled());
    
        delegateQueue.clear();
    
        future = service.scheduleWithFixedDelay(runnable, 5, 5, TimeUnit.MINUTES);
        future.cancel(true);
        assertTrue(future.isCancelled());
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 28.2K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/util/concurrent/UninterruptibleFutureTest.java

        SettableFuture<String> future = SettableFuture.create();
        FutureTask<Boolean> interruptReporter = untimedInterruptReporter(future, false);
    
        runNInterruptsTest(times, future, interruptReporter);
      }
    
      private static void runTimedInterruptsTest(int times)
          throws InterruptedException, ExecutionException, TimeoutException {
        SettableFuture<String> future = SettableFuture.create();
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 9.1K bytes
    - Viewed (0)
Back to top