Home
last modified time | relevance | path

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

/external/rust/crates/tokio/src/future/
Dtry_join.rs10 future2: F2, in try_join3()
20 future2: maybe_done(future2), in try_join3()
35 future2: MaybeDone<F2>,
60 if me.future2.as_mut().poll(cx).is_pending() { in poll()
62 } else if me.future2.as_mut().output_mut().unwrap().is_err() { in poll()
63 return Poll::Ready(Err(me.future2.take_output().unwrap().err().unwrap())); in poll()
75 me.future2.take_output().unwrap().ok().unwrap(), in poll()
/external/rust/crates/futures-util/src/future/
Djoin.rs111 pub fn join<Fut1, Fut2>(future1: Fut1, future2: Fut2) -> Join<Fut1, Fut2> in join()
116 let f = Join::new(future1, future2); in join()
138 future2: Fut2, in join3()
146 let f = Join3::new(future1, future2, future3); in join3()
169 future2: Fut2, in join4()
179 let f = Join4::new(future1, future2, future3, future4); in join4()
203 future2: Fut2, in join5()
215 let f = Join5::new(future1, future2, future3, future4, future5); in join5()
Dtry_join.rs148 pub fn try_join<Fut1, Fut2>(future1: Fut1, future2: Fut2) -> TryJoin<Fut1, Fut2> in try_join()
153 assert_future::<Result<(Fut1::Ok, Fut2::Ok), Fut1::Error>, _>(TryJoin::new(future1, future2)) in try_join()
174 future2: Fut2, in try_join3()
183 future1, future2, future3, in try_join3()
206 future2: Fut2, in try_join4()
217 TryJoin4::new(future1, future2, future3, future4), in try_join4()
241 future2: Fut2, in try_join5()
254 TryJoin5::new(future1, future2, future3, future4, future5), in try_join5()
Dselect.rs84 pub fn select<A, B>(future1: A, future2: B) -> Select<A, B> in select()
90 inner: Some((future1, future2)), in select()
Dtry_select.rs50 pub fn try_select<A, B>(future1: A, future2: B) -> TrySelect<A, B> in try_select()
58 >(TrySelect { inner: Some((future1, future2)) }) in try_select()
/external/guava/guava/src/com/google/common/util/concurrent/
DClosingFuture.java500 Combiner2<V1, V2> whenAllSucceed(ClosingFuture<V1> future1, ClosingFuture<V2> future2) { in whenAllSucceed() argument
501 return new Combiner2<>(future1, future2); in whenAllSucceed()
517 ClosingFuture<V1> future1, ClosingFuture<V2> future2, ClosingFuture<V3> future3) { in whenAllSucceed() argument
518 return new Combiner3<>(future1, future2, future3); in whenAllSucceed()
538 ClosingFuture<V2> future2, in whenAllSucceed() argument
541 return new Combiner4<>(future1, future2, future3, future4); in whenAllSucceed()
562 ClosingFuture<V2> future2, in whenAllSucceed() argument
566 return new Combiner5<>(future1, future2, future3, future4, future5); in whenAllSucceed()
578 ClosingFuture<?> future2, in whenAllSucceed() argument
585 FluentIterable.of(future1, future2, future3, future4, future5, future6) in whenAllSucceed()
[all …]
/external/guava/android/guava/src/com/google/common/util/concurrent/
DClosingFuture.java498 Combiner2<V1, V2> whenAllSucceed(ClosingFuture<V1> future1, ClosingFuture<V2> future2) { in whenAllSucceed() argument
499 return new Combiner2<>(future1, future2); in whenAllSucceed()
515 ClosingFuture<V1> future1, ClosingFuture<V2> future2, ClosingFuture<V3> future3) { in whenAllSucceed() argument
516 return new Combiner3<>(future1, future2, future3); in whenAllSucceed()
536 ClosingFuture<V2> future2, in whenAllSucceed() argument
539 return new Combiner4<>(future1, future2, future3, future4); in whenAllSucceed()
560 ClosingFuture<V2> future2, in whenAllSucceed() argument
564 return new Combiner5<>(future1, future2, future3, future4, future5); in whenAllSucceed()
576 ClosingFuture<?> future2, in whenAllSucceed() argument
583 FluentIterable.of(future1, future2, future3, future4, future5, future6) in whenAllSucceed()
[all …]
/external/rust/crates/futures/tests/
Dtry_join.rs21 let future2 = async { Ok::<(), Never>(()) }; in try_join_never_error() localVariable
22 try_join!(future1, future2) in try_join_never_error()
31 let future2 = async { Err::<Never, ()>(()) }; in try_join_never_ok() localVariable
32 try_join!(future1, future2) in try_join_never_ok()
Dmacro_comma_support.rs30 let future2 = async { 2 }; in join() localVariable
31 join!(future1, future2,); in join()
39 let future2 = async { 2 }.never_error(); in try_join() localVariable
40 try_join!(future1, future2,) in try_join()
Dfuture_shared.rs94 let future2 = LocalFutureObj::new(Box::new(future1.clone())); in drop_in_poll() localVariable
95 slot1.replace(Some(future2)); in drop_in_poll()
/external/guava/android/guava-tests/test/com/google/common/util/concurrent/
DFuturesTest.java2149 SettableFuture<String> future2 = SettableFuture.create();
2152 ListenableFuture<List<String>> compound = allAsList(future1, future2, future3);
2162 future2.set(DATA2);
2195 SettableFuture<String> future2 = SettableFuture.create();
2197 ListenableFuture<List<String>> compound = allAsList(future1, future2);
2205 assertFalse(future2.isDone());
2231 ListenableFuture<String> future2 = immediateFuture("results");
2232 ListenableFuture<List<String>> compound = allAsList(ImmutableList.of(future1, future2));
2245 ListenableFuture<String> future2 = immediateFuture("results");
2246 ListenableFuture<List<String>> compound = allAsList(ImmutableList.of(future1, future2));
[all …]
DExecutionSequencerTest.java94 ListenableFuture<Boolean> future2 = in testCancellationMultipleThreads() local
109 assertThat(future2.isDone()).isFalse(); in testCancellationMultipleThreads()
115 assertThat(getDone(future2)).isFalse(); in testCancellationMultipleThreads()
121 ListenableFuture<Boolean> future2 = in testSecondTaskWaitsForFirstEvenIfCancelled() local
141 assertThat(future2.isDone()).isFalse(); in testSecondTaskWaitsForFirstEvenIfCancelled()
147 assertThat(getDone(future2)).isFalse(); in testSecondTaskWaitsForFirstEvenIfCancelled()
DAbstractFutureTest.java233 SettableFuture<Object> future2 = SettableFuture.create(); in testToString_oom() local
249 future2.set(list); in testToString_oom()
/external/guava/guava-tests/test/com/google/common/util/concurrent/
DFuturesTest.java2149 SettableFuture<String> future2 = SettableFuture.create();
2152 ListenableFuture<List<String>> compound = allAsList(future1, future2, future3);
2162 future2.set(DATA2);
2195 SettableFuture<String> future2 = SettableFuture.create();
2197 ListenableFuture<List<String>> compound = allAsList(future1, future2);
2205 assertFalse(future2.isDone());
2231 ListenableFuture<String> future2 = immediateFuture("results");
2232 ListenableFuture<List<String>> compound = allAsList(ImmutableList.of(future1, future2));
2245 ListenableFuture<String> future2 = immediateFuture("results");
2246 ListenableFuture<List<String>> compound = allAsList(ImmutableList.of(future1, future2));
[all …]
DExecutionSequencerTest.java94 ListenableFuture<Boolean> future2 = in testCancellationMultipleThreads() local
109 assertThat(future2.isDone()).isFalse(); in testCancellationMultipleThreads()
115 assertThat(getDone(future2)).isFalse(); in testCancellationMultipleThreads()
121 ListenableFuture<Boolean> future2 = in testSecondTaskWaitsForFirstEvenIfCancelled() local
141 assertThat(future2.isDone()).isFalse(); in testSecondTaskWaitsForFirstEvenIfCancelled()
147 assertThat(getDone(future2)).isFalse(); in testSecondTaskWaitsForFirstEvenIfCancelled()
DAbstractFutureTest.java233 SettableFuture<Object> future2 = SettableFuture.create(); in testToString_oom() local
249 future2.set(list); in testToString_oom()
/external/python/cpython3/Lib/test/
Dtest_concurrent_futures.py599 future2 = self.executor.submit(time.sleep, 1.5)
602 [CANCELLED_FUTURE, future1, future2],
606 self.assertEqual(set([CANCELLED_FUTURE, future2]), not_done)
622 future2 = self.executor.submit(sleep_and_raise, 1.5)
626 [future1, future2, future3],
629 self.assertEqual(set([future1, future2]), finished)
634 future2 = self.executor.submit(time.sleep, 1.5)
640 future1, future2],
646 self.assertEqual(set([CANCELLED_FUTURE, future2]), pending)
660 future2 = self.executor.submit(mul, 2, 21)
[all …]
/external/connectedappssdk/tests/robotests/src/test/java/com/google/android/enterprise/connectedapps/internal/
DCrossProfileCallbackMultiMergerTest.java215 ListenableFuture<String> future2 = Futures.submit(() -> "World", executorWithThread2); in listenableFuturesCompletingOnSeparateThreads() local
223 future2, new MergerFutureCallback<String>(profile1, merger), directExecutor()); in listenableFuturesCompletingOnSeparateThreads()
241 ListenableFuture<String> future2 = in listenableFuturesCompletingWithErrorsOnSeparateThreads() local
254 future2, new MergerFutureCallback<String>(profile1, merger), directExecutor()); in listenableFuturesCompletingWithErrorsOnSeparateThreads()
/external/rust/crates/tokio/tests/
Dsync_notify.rs207 let mut future2 = spawn(notify.notified()); in test_enable_consumes_permit() localVariable
208 future2.enter(|_, fut| assert!(!fut.enable())); in test_enable_consumes_permit()
/external/kotlinx.coroutines/integration/kotlinx-coroutines-guava/
DREADME.md33 val future2 = loadImageAsync(name2) // start loading second image
34 combineImages(future1.await(), future2.await()) // wait for both, combine, and return result
/external/python/cpython3/Lib/test/test_asyncio/
Dtest_proactor_events.py829 future2 = mock.Mock()
832 sock2.fileno(): future2
840 self.assertFalse(future2.cancel.called)
/external/conscrypt/repackaged/common/src/test/java/com/android/org/conscrypt/javax/net/ssl/
DSSLSocketVersionCompatibilityTest.java244 final Future<byte[]> future2 = runAsync(new SSLServerSessionIdCallable(server2)); in test_SSLSocket_confirmSessionReuse() local
249 final byte[] serverSessionId2 = future2.get(); in test_SSLSocket_confirmSessionReuse()
/external/conscrypt/common/src/test/java/org/conscrypt/javax/net/ssl/
DSSLSocketVersionCompatibilityTest.java242 final Future<byte[]> future2 = runAsync(new SSLServerSessionIdCallable(server2)); in test_SSLSocket_confirmSessionReuse() local
247 final byte[] serverSessionId2 = future2.get(); in test_SSLSocket_confirmSessionReuse()
/external/grpc-grpc-java/core/src/test/java/io/grpc/internal/
DManagedChannelImplTest.java2790 ListenableFuture<Void> future2 = ClientCalls.futureUnaryCall(call2, null); in badServiceConfigIsRecoverable() local
2796 future2.get(); in badServiceConfigIsRecoverable()