- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for closeAsync (0.23 sec)
-
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) -
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) -
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)