Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for TrustedListenableFutureTask (0.14 sec)

  1. android/guava/src/com/google/common/util/concurrent/TrustedListenableFutureTask.java

     */
    @GwtCompatible
    class TrustedListenableFutureTask<V extends @Nullable Object> extends FluentFuture.TrustedFuture<V>
        implements RunnableFuture<V> {
    
      static <V extends @Nullable Object> TrustedListenableFutureTask<V> create(
          AsyncCallable<V> callable) {
        return new TrustedListenableFutureTask<>(callable);
      }
    
      static <V extends @Nullable Object> TrustedListenableFutureTask<V> create(Callable<V> callable) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Jul 11 18:52:30 UTC 2025
    - 5.5K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/util/concurrent/TrustedListenableFutureTaskTest.java

    import org.jspecify.annotations.Nullable;
    
    /** Test case for {@link TrustedListenableFutureTask}. */
    @NullMarked
    @GwtCompatible
    public class TrustedListenableFutureTaskTest extends TestCase {
    
      public void testSuccessful() throws Exception {
        TrustedListenableFutureTask<Integer> task = TrustedListenableFutureTask.create(returning(2));
        assertFalse(task.isDone());
        task.run();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 7.2K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/util/concurrent/Futures.java

          ScheduledExecutorService executorService) {
        TrustedListenableFutureTask<O> task = TrustedListenableFutureTask.create(callable);
        Future<?> scheduled = executorService.schedule(task, delay, timeUnit);
        /*
         * Even when the user interrupts the task, we pass `false` to `cancel` so that we don't
         * interrupt a second time after the interruption performed by TrustedListenableFutureTask.
         */
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 64.3K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/util/concurrent/ExecutionSequencer.java

        ListenableFuture<@Nullable Void> oldFuture = ref.getAndSet(newFuture);
    
        // Invoke our task once the previous future completes.
        TrustedListenableFutureTask<T> taskFuture = TrustedListenableFutureTask.create(task);
        oldFuture.addListener(taskFuture, taskExecutor);
    
        ListenableFuture<T> outputFuture = Futures.nonCancellationPropagating(taskFuture);
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jul 23 15:26:56 UTC 2025
    - 22.1K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/util/concurrent/ClosingFuture.java

          ClosingCallable<V> callable, Executor executor) {
        checkNotNull(callable);
        CloseableList closeables = new CloseableList();
        TrustedListenableFutureTask<V> task =
            TrustedListenableFutureTask.create(
                new Callable<V>() {
                  @Override
                  @ParametricNullness
                  public V call() throws Exception {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jul 23 15:26:56 UTC 2025
    - 97.8K bytes
    - Viewed (0)
  6. guava/src/com/google/common/util/concurrent/ClosingFuture.java

          ClosingCallable<V> callable, Executor executor) {
        checkNotNull(callable);
        CloseableList closeables = new CloseableList();
        TrustedListenableFutureTask<V> task =
            TrustedListenableFutureTask.create(
                new Callable<V>() {
                  @Override
                  @ParametricNullness
                  public V call() throws Exception {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jul 23 15:26:56 UTC 2025
    - 98.1K bytes
    - Viewed (0)
Back to top