Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 3 of 3 for listenInPoolThread (0.09 seconds)

  1. guava-tests/test/com/google/common/util/concurrent/JdkFutureAdaptersTest.java

         */
        assertWithMessage(
                "Can't test the main listenInPoolThread path "
                    + "if the input is already a ListenableFuture")
            .that(input)
            .isNotInstanceOf(ListenableFuture.class);
        ListenableFuture<String> listenable = listenInPoolThread(input);
        /*
         * This will occur before the waiting get() in the
         * listenInPoolThread-spawned thread completes:
         */
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 10K bytes
    - Click Count (0)
  2. android/guava-tests/test/com/google/common/util/concurrent/JdkFutureAdaptersTest.java

         */
        assertWithMessage(
                "Can't test the main listenInPoolThread path "
                    + "if the input is already a ListenableFuture")
            .that(input)
            .isNotInstanceOf(ListenableFuture.class);
        ListenableFuture<String> listenable = listenInPoolThread(input);
        /*
         * This will occur before the waiting get() in the
         * listenInPoolThread-spawned thread completes:
         */
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 10K bytes
    - Click Count (0)
  3. android/guava/src/com/google/common/util/concurrent/JdkFutureAdapters.java

       * Future} instances to be upgraded to {@code ListenableFuture} after the fact.
       */
      public static <V extends @Nullable Object> ListenableFuture<V> listenInPoolThread(
          Future<V> future) {
        if (future instanceof ListenableFuture) {
          return (ListenableFuture<V>) future;
        }
        return new ListenableFutureAdapter<>(future);
      }
    
      /**
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Jul 17 15:26:41 GMT 2025
    - 7.5K bytes
    - Click Count (0)
Back to Top