Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for closeAsync (0.23 sec)

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

        }
        valueAndCloser.closeAsync();
      }
    
      @Override
      void assertBecomesCanceled(ClosingFuture<?> closingFuture) throws ExecutionException {
        assertThatFutureBecomesCancelled(closingFuture.statusFuture());
      }
    
      @Override
      void waitUntilClosed(ClosingFuture<?> closingFuture) {
        if (valueAndCloser != null) {
          valueAndCloser.closeAsync();
        }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 5.7K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/util/concurrent/ClosingFutureFinishToValueAndCloserTest.java

        }
        valueAndCloser.closeAsync();
      }
    
      @Override
      void assertBecomesCanceled(ClosingFuture<?> closingFuture) throws ExecutionException {
        assertThatFutureBecomesCancelled(closingFuture.statusFuture());
      }
    
      @Override
      void waitUntilClosed(ClosingFuture<?> closingFuture) {
        if (valueAndCloser != null) {
          valueAndCloser.closeAsync();
        }
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 5.7K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/util/concurrent/ClosingFuture.java

     *   // do something with userName
     * } finally {
     *   userNameValueAndCloser.closeAsync();
     * }
     * }</pre>
     *
     * In this example, when {@code userNameValueAndCloser.closeAsync()} is called, the transaction and
     * the query result cursor will both be closed, even if the operation is cancelled or fails.
     *
     * <p>Note that if you don't call {@code closeAsync()}, the captured objects will not be closed. The
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 98.5K bytes
    - Viewed (0)
Back to top