Home
last modified time | relevance | path

Searched defs:fut (Results 1 – 25 of 47) sorted by relevance

12

/external/rust/crates/tokio/tests/
Dtime_timeout.rs14 let mut fut = task::spawn(timeout_at(Instant::now(), async {})); in simultaneous_deadline_future_completion() localVariable
23 let mut fut = task::spawn(timeout_at(Instant::now() - ms(1000), async {})); in completed_future_past_deadline() localVariable
37 let mut fut = task::spawn(timeout_at(Instant::now() + ms(100), rx)); in future_and_deadline_in_future() localVariable
61 let mut fut = task::spawn(timeout(ms(100), rx)); in future_and_timeout_in_future() localVariable
88 let mut fut = task::spawn(timeout(duration_max, rx)); in very_large_timeout() localVariable
111 let mut fut = task::spawn(timeout_at(Instant::now(), pending::<()>())); in deadline_now_elapses() localVariable
125 let mut fut = task::spawn(timeout_at(Instant::now() + ms(300), pending::<()>())); in deadline_future_elapses() localVariable
Dmacros_join.rs60 let fut = async { in join_size() localVariable
66 let fut = async { in join_size() localVariable
Dmacros_try_join.rs85 let fut = async { in join_size() localVariable
91 let fut = async { in join_size() localVariable
Dmacros_select.rs203 let fut = async { in struct_size() localVariable
213 let fut = async { in struct_size() localVariable
225 let fut = async { in struct_size() localVariable
Dtime_interval.rs50 let fut = interval.tick(); in poll_next() localVariable
/external/rust/crates/tokio-stream/tests/
Dstream_collect.rs46 let mut fut = task::spawn(rx.collect::<Vec<i32>>()); in collect_vec_items() localVariable
68 let mut fut = task::spawn(rx.collect::<String>()); in collect_string_items() localVariable
90 let mut fut = task::spawn(rx.collect::<String>()); in collect_str_items() localVariable
112 let mut fut = task::spawn(rx.collect::<Result<String, &str>>()); in collect_results_ok() localVariable
134 let mut fut = task::spawn(rx.collect::<Result<String, &str>>()); in collect_results_err() localVariable
/external/rust/crates/futures/tests/
Dasync_await_macros.rs25 let fut = async { in join() localVariable
191 let fut = async { in select_size() localVariable
199 let fut = async { in select_size() localVariable
265 let fut = async { in select_on_non_unpin_size() localVariable
380 let fut = async { in join_size() localVariable
386 let fut = async { in join_size() localVariable
399 let fut = async { in try_join_size() localVariable
405 let fut = async { in try_join_size() localVariable
Dstream_select_next_some.rs42 let mut fut = future::ready(1).pending_once(); in select() localVariable
75 let mut fut = future::ready(1).pending_once(); in futures_util_select() localVariable
Dbasic_combinators.rs11 let fut = future::ready(1) in basic_future_combinators() localVariable
43 let fut = future::ready(Ok(1)) in basic_try_future_combinators() localVariable
/external/libcxx/test/std/thread/futures/futures.async/
Dasync_race.38682.pass.cpp47 std::future<int> fut = std::async(std::launch::async, worker, v); in main() local
56 std::future<int&> fut = std::async(std::launch::async, worker_ref, std::ref(i)); in main() local
65 std::future<void> fut = std::async(std::launch::async, worker_void); in main() local
/external/llvm-project/libcxx/test/std/thread/futures/futures.async/
Dasync_race.38682.pass.cpp46 std::future<int> fut = std::async(std::launch::async, worker, v); in main() local
55 std::future<int&> fut = std::async(std::launch::async, worker_ref, std::ref(i)); in main() local
64 std::future<void> fut = std::async(std::launch::async, worker_void); in main() local
/external/python/cpython3/Modules/
D_asynciomodule.c202 get_future_loop(PyObject *fut) in get_future_loop()
392 future_is_alive(FutureObj *fut) in future_is_alive()
399 future_ensure_alive(FutureObj *fut) in future_ensure_alive()
410 #define ENSURE_FUTURE_ALIVE(fut) \ argument
420 future_schedule_callbacks(FutureObj *fut) in future_schedule_callbacks()
476 future_init(FutureObj *fut, PyObject *loop) in future_init()
534 future_set_result(FutureObj *fut, PyObject *res) in future_set_result()
557 future_set_exception(FutureObj *fut, PyObject *exc) in future_set_exception()
619 future_set_cancelled_error(FutureObj *fut) in future_set_cancelled_error()
629 future_get_result(FutureObj *fut, PyObject **result) in future_get_result()
[all …]
/external/rust/crates/tokio/src/macros/
Djoin.rs83 let mut fut = unsafe { Pin::new_unchecked(fut) }; localVariable
100 let mut fut = unsafe { Pin::new_unchecked(fut) }; localVariable
Dtry_join.rs90 let mut fut = unsafe { Pin::new_unchecked(fut) }; localVariable
109 let mut fut = unsafe { Pin::new_unchecked(fut) }; localVariable
Dselect.rs452 let mut fut = unsafe { Pin::new_unchecked(fut) }; localVariable
/external/rust/crates/flate2/tests/
Dasync-reader.rs67 let fut = read_to_end(AssertAsync(GzDecoder::new(BadReader::new(f))), Vec::new()); in test_gz_asyncread() localVariable
83 let fut = read_to_end( in test_multi_gz_asyncread() localVariable
/external/python/cpython3/Lib/asyncio/
Dselector_events.py375 def _sock_read_done(self, fd, fut, handle=None): argument
379 def _sock_recv(self, fut, sock, n): argument
416 def _sock_recv_into(self, fut, sock, buf): argument
464 def _sock_sendall(self, fut, sock, view, pos): argument
504 def _sock_connect(self, fut, sock, address): argument
525 def _sock_write_done(self, fd, fut, handle=None): argument
529 def _sock_connect_cb(self, fut, sock, address): argument
563 def _sock_accept(self, fut, sock): argument
Dtasks.py421 async def wait_for(fut, timeout, *, loop=None): argument
542 async def _cancel_and_wait(fut, loop): argument
761 def _done_callback(fut): argument
Dfutures.py296 def _get_loop(fut): argument
308 def _set_result_unless_cancelled(fut, result): argument
Dproactor_events.py271 def _loop_reading(self, fut=None): argument
437 def _pipe_closed(self, fut): argument
504 def _loop_writing(self, fut=None): argument
537 def _loop_reading(self, fut=None): argument
/external/rust/crates/async-trait/tests/executor/
Dmod.rs30 let fut = unsafe { Pin::new_unchecked(&mut fut) }; in block_on_simple() localVariable
/external/rust/crates/tokio/src/signal/
Dreusable_box.rs164 let fut = async move { 10 }; in test_different_futures() localVariable
212 let fut = ZeroSizedFuture {}; in test_zero_sized() localVariable
/external/nanohttpd/websocket/src/test/java/fi/iki/elonen/samples/echo/
DSimpleEchoSocket.java87 Future<Void> fut; in onConnect() local
/external/rust/crates/tokio/src/sync/tests/
Dloom_oneshot.rs78 let fut = self.get_mut().tx.closed(); in poll() localVariable
/external/rust/crates/tokio-test/src/
Dtask.rs74 let fut = self.future.as_mut(); in enter() localVariable
96 let fut = self.future.as_mut(); in poll() localVariable

12