- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for closeAsync (0.06 sec)
-
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(); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Sep 06 17:04:31 UTC 2023 - 5.7K bytes - Viewed (0) -
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(); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Sep 06 17:04:31 UTC 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
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Oct 08 19:36:35 UTC 2024 - 98.5K bytes - Viewed (0)