Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 20 for completions (0.04 sec)

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

     * Tasks execute with the same happens-before order that the function calls to {@link #submit} and
     * {@link #submitAsync} that submitted those tasks had.
     *
     * <p>This class has limited support for cancellation and other "early completions":
     *
     * <ul>
     *   <li>While calls to {@code submit} and {@code submitAsync} return a {@code Future} that can be
     *       cancelled, cancellation never propagates to a task that has started to run -- neither to
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jul 23 15:26:56 UTC 2025
    - 22.1K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/util/concurrent/AbstractFutureBenchmarks.java

                      : t;
              releaseShared(finalState);
            } else if (getState() == COMPLETING) {
              // If some other thread is currently completing the future, block until
              // they are done so we can guarantee completion.
              acquireShared(-1);
            }
            return doCompletion;
          }
        }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Jan 30 16:59:10 UTC 2025
    - 13.7K bytes
    - Viewed (0)
  3. okhttp/src/commonJvmAndroid/kotlin/okhttp3/EventListener.kt

       * time it is closed. In such calls [byteCount] is the number of bytes returned to the
       * application. This may be smaller than the resource's byte count if were read to completion.
       *
       * This method is always invoked after [responseBodyStart].
       */
      open fun responseBodyEnd(
        call: Call,
        byteCount: Long,
      ) {
      }
    
      /**
       * Invoked when a response fails to be read.
       *
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Tue May 27 14:58:02 UTC 2025
    - 17.4K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/util/concurrent/UninterruptiblesTest.java

      }
    
      /**
       * Wrapper around {@link Stopwatch} which also contains an "expected completion time." Creating a
       * {@code Completion} starts the underlying stopwatch.
       */
      private static final class Completion {
        final Stopwatch stopwatch;
        final long expectedCompletionWaitMillis;
    
        Completion(long expectedCompletionWaitMillis) {
          this.expectedCompletionWaitMillis = expectedCompletionWaitMillis;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jul 16 17:42:14 UTC 2025
    - 31.7K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/util/concurrent/AbstractFutureState.java

      //
      // * Be responsive to interruption
      // * Don't create Waiter nodes if you aren't going to park, this helps reduce contention on
      //   waitersField.
      // * Future completion is defined by when #valueField becomes non-null/non DelegatingToFuture
      // * Future completion can be observed if the waitersField field contains a TOMBSTONE
    
      // Timed Get
      // There are a few design constraints to consider
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 33.2K bytes
    - Viewed (0)
  6. guava/src/com/google/common/util/concurrent/AbstractFutureState.java

      //
      // * Be responsive to interruption
      // * Don't create Waiter nodes if you aren't going to park, this helps reduce contention on
      //   waitersField.
      // * Future completion is defined by when #valueField becomes non-null/non DelegatingToFuture
      // * Future completion can be observed if the waitersField field contains a TOMBSTONE
    
      // Timed Get
      // There are a few design constraints to consider
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 34.8K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/util/concurrent/FluentFuture.java

       * listeners are also applicable to heavyweight callbacks passed to this method.
       *
       * <p>For a more general interface to attach a completion listener, see {@link #addListener}.
       *
       * <p>This method is similar to {@link java.util.concurrent.CompletableFuture#whenComplete} and
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 19.7K bytes
    - Viewed (0)
  8. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/cache/DiskLruCache.kt

          }
          if (entry.lockingSourceCount > 0 || entry.currentEditor != null) {
            entry.zombie = true
            return true
          }
        }
    
        entry.currentEditor?.detach() // Prevent the edit from completing normally.
    
        for (i in 0 until valueCount) {
          fileSystem.deleteIfExists(entry.cleanFiles[i])
          size -= entry.lengths[i]
          entry.lengths[i] = 0
        }
    
        redundantOpCount++
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed May 28 23:28:25 UTC 2025
    - 34.7K bytes
    - Viewed (0)
  9. okhttp-testing-support/src/main/kotlin/okhttp3/internal/concurrent/TaskFaker.kt

     *
     * Task threads release their execution privilege in these ways:
     *
     *  * By yielding in [TaskRunner.Backend.coordinatorWait].
     *  * By yielding in [BlockingQueue.poll].
     *  * By completing.
     */
    class TaskFaker : Closeable {
      val logger = Logger.getLogger("TaskFaker." + instance++)
    
      /** Though this executor service may hold many threads, they are not executed concurrently. */
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed May 28 23:28:25 UTC 2025
    - 11.9K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/math/DoubleMathTest.java

        }
      }
    
      /*
       * We've split testFuzzyCompare() into multiple tests so that our internal Android test runner has
       * a better chance of completing each within its per-test-method timeout.
       */
    
      public void testFuzzyCompare0() {
        runTestFuzzyCompare(0);
      }
    
      public void testFuzzyCompare1() {
        runTestFuzzyCompare(1);
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 27.3K bytes
    - Viewed (0)
Back to top