Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for Zhang (0.03 sec)

  1. guava/src/com/google/common/util/concurrent/AbstractTransformFuture.java

         * 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.
         *
         * Contrast this to the situation we have if setResult() throws, a situation described below.
         */
        I sourceResult;
        try {
          sourceResult = getDone(localInputFuture);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 01 21:46:34 UTC 2024
    - 10.6K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/util/concurrent/MoreExecutors.java

       * @param terminationTimeout how long to wait for the executor to finish before terminating the
       *     JVM
       * @param timeUnit unit of time for the time parameter
       * @return an unmodifiable version of the input which will not hang the JVM
       */
      @J2ktIncompatible
      @GwtIncompatible // TODO
      @SuppressWarnings("GoodTime") // should accept a java.time.Duration
      public static ExecutorService getExitingExecutorService(
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed May 15 10:40:05 UTC 2024
    - 39K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/util/concurrent/FuturesTest.java

            }
          }
        }
      }
    
      /**
       * Call the non-timed {@link Future#get()} in a way that allows us to abort if it's expected to
       * hang forever. More precisely, if it's expected to return, we simply call it[*], but if it's
       * expected to hang (because one of the input futures that we know makes it up isn't done yet),
       * then we call it in a separate thread (using pseudoTimedGet). The result is that we wait as long
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed May 29 16:29:37 UTC 2024
    - 144.1K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/util/concurrent/FuturesTest.java

            }
          }
        }
      }
    
      /**
       * Call the non-timed {@link Future#get()} in a way that allows us to abort if it's expected to
       * hang forever. More precisely, if it's expected to return, we simply call it[*], but if it's
       * expected to hang (because one of the input futures that we know makes it up isn't done yet),
       * then we call it in a separate thread (using pseudoTimedGet). The result is that we wait as long
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed May 29 16:29:37 UTC 2024
    - 144.1K bytes
    - Viewed (0)
  5. guava/src/com/google/common/util/concurrent/MoreExecutors.java

       * @param terminationTimeout how long to wait for the executor to finish before terminating the
       *     JVM
       * @return an unmodifiable version of the input which will not hang the JVM
       * @since 28.0
       */
      @J2ktIncompatible
      @GwtIncompatible // TODO
      public static ExecutorService getExitingExecutorService(
          ThreadPoolExecutor executor, Duration terminationTimeout) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed May 15 10:40:05 UTC 2024
    - 43.7K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/util/concurrent/GeneratedMonitorTest.java

              TimeoutsToUse.FINITE,
              isBoolean(method) ? Outcome.FAILURE : Outcome.HANG);
          addTests(
              suite,
              method,
              Scenario.SATISFIED_AND_OCCUPIED_BEFORE_ENTERING,
              TimeoutsToUse.INFINITE,
              isGuarded(method) ? Outcome.HANG : (isTryEnter(method) ? Outcome.FAILURE : Outcome.HANG));
          addTests(
              suite,
              method,
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed May 29 16:29:37 UTC 2024
    - 25.8K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/util/concurrent/GeneratedMonitorTest.java

              TimeoutsToUse.FINITE,
              isBoolean(method) ? Outcome.FAILURE : Outcome.HANG);
          addTests(
              suite,
              method,
              Scenario.SATISFIED_AND_OCCUPIED_BEFORE_ENTERING,
              TimeoutsToUse.INFINITE,
              isGuarded(method) ? Outcome.HANG : (isTryEnter(method) ? Outcome.FAILURE : Outcome.HANG));
          addTests(
              suite,
              method,
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed May 29 16:29:37 UTC 2024
    - 27.1K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/util/concurrent/AbstractTransformFuture.java

         * 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.
         *
         * Contrast this to the situation we have if setResult() throws, a situation described below.
         */
        I sourceResult;
        try {
          sourceResult = getDone(localInputFuture);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 01 21:46:34 UTC 2024
    - 10.6K bytes
    - Viewed (0)
Back to top