- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 11 for transformAsync (0.22 sec)
-
guava-tests/test/com/google/common/util/concurrent/FuturesTransformAsyncTest.java
* limitations under the License. */ package com.google.common.util.concurrent; import static com.google.common.truth.Truth.assertThat; import static com.google.common.util.concurrent.Futures.transformAsync; import static com.google.common.util.concurrent.MoreExecutors.directExecutor; import static com.google.common.util.concurrent.Uninterruptibles.awaitUninterruptibly; import static org.junit.Assert.assertThrows;
Java - Registered: Fri Apr 12 12:43:09 GMT 2024 - Last Modified: Wed Sep 06 17:04:31 GMT 2023 - 6.1K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/FuturesTransformAsyncTest.java
* limitations under the License. */ package com.google.common.util.concurrent; import static com.google.common.truth.Truth.assertThat; import static com.google.common.util.concurrent.Futures.transformAsync; import static com.google.common.util.concurrent.MoreExecutors.directExecutor; import static com.google.common.util.concurrent.Uninterruptibles.awaitUninterruptibly; import static org.junit.Assert.assertThrows;
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed Sep 06 17:04:31 GMT 2023 - 6.1K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/FuturesTest.java
ListenableFuture<Object> unused = transformAsync(root, asyncIdentity(), directExecutor()); root.set("foo"); } SettableFuture<Object> root = SettableFuture.create(); ListenableFuture<Object> output = root; for (int i = 0; i < 10000; i++) { output = transformAsync(output, asyncIdentity(), directExecutor()); } try { root.set("foo");
Java - Registered: Fri Apr 12 12:43:09 GMT 2024 - Last Modified: Tue Feb 20 17:00:05 GMT 2024 - 144.5K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/FuturesTest.java
ListenableFuture<Object> unused = transformAsync(root, asyncIdentity(), directExecutor()); root.set("foo"); } SettableFuture<Object> root = SettableFuture.create(); ListenableFuture<Object> output = root; for (int i = 0; i < 10000; i++) { output = transformAsync(output, asyncIdentity(), directExecutor()); } try { root.set("foo");
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Tue Feb 20 17:00:05 GMT 2024 - 144.5K bytes - Viewed (0) -
android/guava/src/com/google/common/util/concurrent/ClosingFuture.java
* queryFuture.transformAsync((closer, result) -> result.getRowsClosingFuture(), executor); * * // Result.writeRowsToOutputStreamFuture() returns a ListenableFuture that resolves to the * // number of written rows. openOutputFile() returns a FileOutputStream (which implements * // Closeable). * ClosingFuture<Integer> rowsFuture2 = * queryFuture.transformAsync( * (closer, result) -> {
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) -
guava-tests/test/com/google/common/util/concurrent/AbstractClosingFutureTest.java
assertClosed(closeable1, closeable2); } public void testTransformAsync() throws Exception { ClosingFuture<String> closingFuture = ClosingFuture.from(immediateFuture("value")) .transformAsync( new AsyncClosingFunction<String, TestCloseable>() { @Override public ClosingFuture<TestCloseable> apply(DeferredCloser closer, String v)
Java - Registered: Fri Apr 12 12:43:09 GMT 2024 - Last Modified: Thu Feb 22 17:15:24 GMT 2024 - 75.3K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/FluentFutureTest.java
assertThat(f.get()).isEqualTo(2); } public void testTransformAsync() throws Exception { FluentFuture<Integer> f = FluentFuture.from(immediateFuture(1)) .transformAsync( new AsyncFunction<Integer, Integer>() { @Override public ListenableFuture<Integer> apply(Integer input) { return immediateFuture(input + 1);
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Tue Feb 13 14:28:25 GMT 2024 - 5.7K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/AbstractClosingFutureTest.java
assertClosed(closeable1, closeable2); } public void testTransformAsync() throws Exception { ClosingFuture<String> closingFuture = ClosingFuture.from(immediateFuture("value")) .transformAsync( new AsyncClosingFunction<String, TestCloseable>() { @Override public ClosingFuture<TestCloseable> apply(DeferredCloser closer, String v)
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Thu Feb 22 17:15:24 GMT 2024 - 74.7K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/FluentFutureTest.java
assertThat(f.get()).isEqualTo(2); } public void testTransformAsync() throws Exception { FluentFuture<Integer> f = FluentFuture.from(immediateFuture(1)) .transformAsync( new AsyncFunction<Integer, Integer>() { @Override public ListenableFuture<Integer> apply(Integer input) { return immediateFuture(input + 1);
Java - Registered: Fri Apr 12 12:43:09 GMT 2024 - Last Modified: Tue Feb 13 14:28:25 GMT 2024 - 5.7K bytes - Viewed (0) -
android/guava/src/com/google/common/util/concurrent/Futures.java
* Example usage: * * <pre>{@code * ListenableFuture<RowKey> rowKeyFuture = indexService.lookUp(query); * ListenableFuture<QueryResult> queryFuture = * transformAsync(rowKeyFuture, dataService::readFuture, executor); * }</pre> * * <p>When selecting an executor, note that {@code directExecutor} is dangerous in some cases. See
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Mon Apr 01 16:15:01 GMT 2024 - 59.6K bytes - Viewed (0)