Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 11 - 20 of 34 for CANCELLED (0.28 seconds)

  1. android/guava-tests/benchmark/com/google/common/util/concurrent/AbstractFutureFootprintBenchmark.java

    /** Measures the size of AbstractFuture implementations. */
    @NullUnmarked
    public class AbstractFutureFootprintBenchmark {
    
      enum State {
        NOT_DONE,
        FINISHED,
        CANCELLED,
        FAILED
      }
    
      @Param State state;
      @Param Impl impl;
    
      @Param({"0", "1", "5", "10"})
      int numListeners;
    
      @Param({"0", "1", "5", "10"})
      int numThreads;
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue May 13 18:46:00 GMT 2025
    - 3K bytes
    - Click Count (0)
  2. android/guava/src/com/google/common/util/concurrent/AbstractTransformFuture.java

          return;
        }
    
        /*
         * Any of the setException() calls below can fail if the output Future is cancelled between now
         * and then. This means that we're silently swallowing an exception -- maybe even an Error. But
         * this is no worse than what FutureTask does in that situation. Additionally, because the
         * Future was cancelled, its listeners have been run, so its consumers will not hang.
         *
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Feb 20 18:03:37 GMT 2025
    - 10.8K bytes
    - Click Count (0)
  3. android/guava-tests/test/com/google/common/util/concurrent/ExecutionSequencerTest.java

        // stop it.
        blockingCallable.waitForStart();
    
        // This time, cancel the future for the first task. The task remains running, only the future
        // is cancelled.
        future1.cancel(false);
    
        // Give the second task a chance to (incorrectly) start up while the first task is running.
        // (This is the assertion that fails.)
        assertThat(future2.isDone()).isFalse();
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 13.6K bytes
    - Click Count (0)
  4. futures/failureaccess/src/com/google/common/util/concurrent/internal/InternalFutureFailureAccess.java

      /**
       * Usually returns {@code null} but, if this {@code Future} has failed, may <i>optionally</i>
       * return the cause of the failure. "Failure" means specifically "completed with an exception"; it
       * does not include "was cancelled." To be explicit: If this method returns a non-null value,
       * then:
       *
       * <ul>
       *   <li>{@code isDone()} must return {@code true}
       *   <li>{@code isCancelled()} must return {@code false}
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sat Jan 18 02:54:30 GMT 2025
    - 2.3K bytes
    - Click Count (0)
  5. android/guava-tests/test/com/google/common/util/concurrent/AbstractFutureTest.java

      }
    
      public void testToString_cancelled() throws Exception {
        assertThat(immediateCancelledFuture().toString()).matches("[^\\[]+\\[status=CANCELLED\\]");
      }
    
      public void testToString_failed() {
        assertThat(immediateFailedFuture(new RuntimeException("foo")).toString())
    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)
  6. futures/failureaccess/src/com/google/common/util/concurrent/internal/InternalFutures.java

       * Usually returns {@code null} but, if the given {@code Future} has failed, may <i>optionally</i>
       * return the cause of the failure. "Failure" means specifically "completed with an exception"; it
       * does not include "was cancelled." To be explicit: If this method returns a non-null value,
       * then:
       *
       * <ul>
       *   <li>{@code isDone()} must return {@code true}
       *   <li>{@code isCancelled()} must return {@code false}
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sat Jan 18 02:54:30 GMT 2025
    - 1.7K bytes
    - Click Count (0)
  7. android/guava/src/com/google/common/util/concurrent/TimeoutFuture.java

     *
     * <p>Future that delegates to another but will finish early (via a {@link TimeoutException} wrapped
     * in an {@link ExecutionException}) if the specified duration expires. The delegate future is
     * interrupted and cancelled if it times out.
     */
    @J2ktIncompatible
    @GwtIncompatible
    final class TimeoutFuture<V extends @Nullable Object> extends FluentFuture.TrustedFuture<V> {
      static <V extends @Nullable Object> ListenableFuture<V> create(
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sun Dec 22 03:38:46 GMT 2024
    - 8K bytes
    - Click Count (0)
  8. guava-tests/test/com/google/common/util/concurrent/ExecutionSequencerTest.java

        // stop it.
        blockingCallable.waitForStart();
    
        // This time, cancel the future for the first task. The task remains running, only the future
        // is cancelled.
        future1.cancel(false);
    
        // Give the second task a chance to (incorrectly) start up while the first task is running.
        // (This is the assertion that fails.)
        assertThat(future2.isDone()).isFalse();
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 13.6K bytes
    - Click Count (0)
  9. android/guava/src/com/google/common/util/concurrent/MoreExecutors.java

            this.scheduledDelegate = scheduledDelegate;
          }
    
          @Override
          public boolean cancel(boolean mayInterruptIfRunning) {
            boolean cancelled = super.cancel(mayInterruptIfRunning);
            if (cancelled) {
              // Unless it is cancelled, the delegate may continue being scheduled
              scheduledDelegate.cancel(mayInterruptIfRunning);
    
              /*
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Jan 28 22:39:02 GMT 2026
    - 45.6K bytes
    - Click Count (0)
  10. android/guava/src/com/google/common/util/concurrent/AbstractScheduledService.java

               * the lock) until after it's scheduled and the runningTask field is set.
               */
              if (requireNonNull(runningTask).isCancelled()) {
                // task may have been cancelled while blocked on the lock.
                return;
              }
              AbstractScheduledService.this.runOneIteration();
            } catch (Throwable t) {
              restoreInterruptIfIsInterruptedException(t);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sat Aug 09 01:14:59 GMT 2025
    - 27.7K bytes
    - Click Count (0)
Back to Top