Home
last modified time | relevance | path

Searched refs:future2 (Results 1 – 9 of 9) sorted by relevance

/external/guava/guava-tests/test/com/google/common/util/concurrent/
DFuturesTest.java118 ListenableFuture<String> future2 = Futures.immediateFuture(DATA2); in testMultipleImmediateFutures() local
122 assertSame(DATA2, future2.get(0L, TimeUnit.MILLISECONDS)); in testMultipleImmediateFutures()
174 CheckedFuture<String, MyException> future2 = Futures.immediateCheckedFuture( in testMultipleImmediateCheckedFutures() local
180 assertSame(DATA2, future2.get(0L, TimeUnit.MILLISECONDS)); in testMultipleImmediateCheckedFutures()
181 assertSame(DATA2, future2.checkedGet(0L, TimeUnit.MILLISECONDS)); in testMultipleImmediateCheckedFutures()
820 SettableFuture<String> future2 = SettableFuture.create();
824 Futures.allAsList(future1, future2, future3);
834 future2.set(DATA2);
870 SettableFuture<String> future2 = SettableFuture.create();
873 Futures.allAsList(future1, future2);
[all …]
/external/python/futures/
Dtest_futures.py300 future2 = self.executor.submit(time.sleep, 1.5)
303 [CANCELLED_FUTURE, future1, future2],
307 self.assertEqual(set([CANCELLED_FUTURE, future2]), not_done)
323 future2 = self.executor.submit(sleep_and_raise, 1.5)
327 [future1, future2, future3],
330 self.assertEqual(set([future1, future2]), finished)
335 future2 = self.executor.submit(time.sleep, 1.5)
341 future1, future2],
347 self.assertEqual(set([CANCELLED_FUTURE, future2]), pending)
361 future2 = self.executor.submit(mul, 2, 21)
[all …]
/external/python/cpython3/Lib/test/
Dtest_concurrent_futures.py447 future2 = self.executor.submit(time.sleep, 1.5)
450 [CANCELLED_FUTURE, future1, future2],
454 self.assertEqual(set([CANCELLED_FUTURE, future2]), not_done)
470 future2 = self.executor.submit(sleep_and_raise, 1.5)
474 [future1, future2, future3],
477 self.assertEqual(set([future1, future2]), finished)
482 future2 = self.executor.submit(time.sleep, 1.5)
488 future1, future2],
494 self.assertEqual(set([CANCELLED_FUTURE, future2]), pending)
508 future2 = self.executor.submit(mul, 2, 21)
[all …]
/external/python/cpython3/Lib/test/test_asyncio/
Dtest_proactor_events.py850 future2 = mock.Mock()
853 sock2.fileno(): future2
861 self.assertFalse(future2.cancel.called)
/external/conscrypt/repackaged/openjdk-integ-tests/src/test/java/com/android/org/conscrypt/javax/net/ssl/
DSSLSocketVersionCompatibilityTest.java269 final Future<byte[]> future2 = runAsync(new SSLServerSessionIdCallable(server2)); in test_SSLSocket_confirmSessionReuse() local
274 final byte[] serverSessionId2 = future2.get(); in test_SSLSocket_confirmSessionReuse()
/external/conscrypt/openjdk-integ-tests/src/test/java/org/conscrypt/javax/net/ssl/
DSSLSocketVersionCompatibilityTest.java267 final Future<byte[]> future2 = runAsync(new SSLServerSessionIdCallable(server2)); in test_SSLSocket_confirmSessionReuse() local
272 final byte[] serverSessionId2 = future2.get(); in test_SSLSocket_confirmSessionReuse()
/external/grpc-grpc-java/core/src/test/java/io/grpc/internal/
DManagedChannelImplTest.java2789 ListenableFuture<Void> future2 = ClientCalls.futureUnaryCall(call2, null); in badServiceConfigIsRecoverable() local
2795 future2.get(); in badServiceConfigIsRecoverable()
/external/protobuf/php/ext/google/protobuf/
Dupb.h5232 void *future2;
5294 void *future2;
/external/protobuf/ruby/ext/google/protobuf_c/
Dupb.h645 void *future2; variable