Home
last modified time | relevance | path

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

/external/rust/crates/futures-channel/benches/
Dsync_mpsc.rs30 assert_eq!(Poll::Pending, rx.poll_next_unpin(&mut cx)); in unbounded_1_tx()
35 assert_eq!(Poll::Ready(Some(i)), rx.poll_next_unpin(&mut cx)); in unbounded_1_tx()
52 assert_eq!(Poll::Pending, rx.poll_next_unpin(&mut cx)); in unbounded_100_tx()
56 assert_eq!(Poll::Ready(Some(i)), rx.poll_next_unpin(&mut cx)); in unbounded_100_tx()
71 assert_eq!(Poll::Ready(Some(i)), rx.poll_next_unpin(&mut cx)); in unbounded_uncontended()
111 assert_eq!(Poll::Ready(Some(i + 1)), tx.poll_next_unpin(&mut cx)); in bounded_1_tx()
112 assert_eq!(Poll::Pending, tx.poll_next_unpin(&mut cx)); in bounded_1_tx()
113 assert_eq!(Poll::Ready(Some(i + 1)), rx.poll_next_unpin(&mut cx)); in bounded_1_tx()
136 assert_eq!(Poll::Ready(Some(i + 1)), x.poll_next_unpin(&mut cx)); in bounded_100_tx()
138 assert_eq!(Poll::Pending, x.poll_next_unpin(&mut cx)); in bounded_100_tx()
[all …]
/external/rust/crates/futures/tests/
Dready_queue.rs26 assert!(!queue.poll_next_unpin(cx).is_ready()); in basic_usage()
30 assert_eq!(Poll::Ready(Some(Ok("hello"))), queue.poll_next_unpin(cx)); in basic_usage()
31 assert!(!queue.poll_next_unpin(cx).is_ready()); in basic_usage()
36 assert_eq!(Poll::Ready(Some(Ok("world"))), queue.poll_next_unpin(cx)); in basic_usage()
37 assert_eq!(Poll::Ready(Some(Ok("world2"))), queue.poll_next_unpin(cx)); in basic_usage()
38 assert_eq!(Poll::Ready(None), queue.poll_next_unpin(cx)); in basic_usage()
60 assert!(!queue.poll_next_unpin(cx).is_ready()); in resolving_errors()
64 assert_eq!(Poll::Ready(Some(Err(oneshot::Canceled))), queue.poll_next_unpin(cx)); in resolving_errors()
65 assert!(!queue.poll_next_unpin(cx).is_ready()); in resolving_errors()
70 assert_eq!(Poll::Ready(Some(Err(oneshot::Canceled))), queue.poll_next_unpin(cx)); in resolving_errors()
[all …]
Dfutures_ordered.rs15 assert!(stream.poll_next_unpin(&mut noop_context()).is_pending()); in works_1()
46 assert!(stream.poll_next_unpin(&mut cx).is_ready()); in works_2()
47 assert!(stream.poll_next_unpin(&mut cx).is_pending()); in works_2()
49 assert!(stream.poll_next_unpin(&mut cx).is_ready()); in works_2()
88 assert!(stream.poll_next_unpin(cx).is_pending()); in queue_never_unblocked()
92 assert!(stream.poll_next_unpin(cx).is_pending()); in queue_never_unblocked()
94 assert!(stream.poll_next_unpin(cx).is_pending()); in queue_never_unblocked()
95 assert!(stream.poll_next_unpin(cx).is_pending()); in queue_never_unblocked()
Dfutures_unordered.rs19 assert_eq!(tasks.poll_next_unpin(&mut cx), Poll::Ready(None)); in is_terminated()
34 assert_eq!(tasks.poll_next_unpin(&mut cx), Poll::Ready(Some(1))); in is_terminated()
36 assert_eq!(tasks.poll_next_unpin(&mut cx), Poll::Ready(None)); in is_terminated()
89 assert_eq!(stream.poll_next_unpin(&mut cx), Poll::Ready(Some(Ok(9)))); in works_2()
91 assert_eq!(stream.poll_next_unpin(&mut cx), Poll::Ready(Some(Ok(30)))); in works_2()
92 assert_eq!(stream.poll_next_unpin(&mut cx), Poll::Ready(None)); in works_2()
133 assert!(stream.poll_next_unpin(cx).is_pending()); in finished_future()
138 assert!(stream.poll_next_unpin(cx).is_ready()); in finished_future()
139 assert!(stream.poll_next_unpin(cx).is_pending()); in finished_future()
140 assert!(stream.poll_next_unpin(cx).is_pending()); in finished_future()
[all …]
Dtry_stream.rs15 assert_eq!(Poll::Ready(None), s.poll_next_unpin(cx)); in try_filter_map_after_err()
26 assert_eq!(Poll::Ready(None), s.poll_next_unpin(cx)); in try_skip_while_after_err()
37 assert_eq!(Poll::Ready(None), s.poll_next_unpin(cx)); in try_take_while_after_err()
Dstream_select_all.rs12 assert_eq!(tasks.poll_next_unpin(&mut cx), Poll::Ready(None)); in is_terminated()
25 assert_eq!(tasks.poll_next_unpin(&mut cx), Poll::Ready(Some(1))); in is_terminated()
27 assert_eq!(tasks.poll_next_unpin(&mut cx), Poll::Ready(None)); in is_terminated()
Dsink.rs12 match s.poll_next_unpin(&mut panic_context()) { in sassert_next()
/external/rust/crates/futures-util/benches/
Dfutures_unordered.rs36 if let Poll::Ready(None) = rxs.poll_next_unpin(cx) { in oneshots()
/external/rust/crates/futures-util/src/stream/stream/
Dnext.rs35 self.stream.poll_next_unpin(cx) in poll()
Dselect_next_some.rs34 if let Some(item) = ready!(self.stream.poll_next_unpin(cx)) { in poll()
Dinto_future.rs88 ready!(s.poll_next_unpin(cx)) in poll()
Dbuffered.rs80 let res = this.in_progress_queue.poll_next_unpin(cx); in poll_next()
Dbuffer_unordered.rs82 match this.in_progress_queue.poll_next_unpin(cx) { in poll_next()
Dfor_each_concurrent.rs101 match this.futures.poll_next_unpin(cx) { in poll()
Dmod.rs1411 fn poll_next_unpin(&mut self, cx: &mut Context<'_>) -> Poll<Option<Self::Item>> in poll_next_unpin() method
/external/rust/crates/futures-channel/tests/
Dmpsc-close.rs199 if let Poll::Ready(v) = rx.poll_next_unpin(cx) { in stress_try_send_as_receiver_closes()
207 match self.command_rx.poll_next_unpin(cx) { in stress_try_send_as_receiver_closes()
Dchannel.rs38 rx.poll_next_unpin(cx) in drop_sender()
Dmpsc.rs113 assert_eq!(rx.poll_next_unpin(cx), Poll::Ready(None)); in recv_close_gets_none()
129 assert_eq!(rx.poll_next_unpin(cx), Poll::Ready(None)); in tx_close_gets_none()
294 match rx.poll_next_unpin(&mut noop_context()) { in stress_receiver_multi_task_bounded_hard()
/external/rust/crates/futures-util/src/stream/
Dselect_all.rs83 match ready!(self.inner.poll_next_unpin(cx)) { in poll_next()
Dfutures_ordered.rs172 match ready!(this.in_progress_queue.poll_next_unpin(cx)) { in poll_next()
/external/rust/crates/futures-util/src/stream/try_stream/
Dtry_buffered.rs66 match this.in_progress_queue.poll_next_unpin(cx) { in poll_next()
Dtry_buffer_unordered.rs63 match this.in_progress_queue.poll_next_unpin(cx) { in poll_next()
Dtry_for_each_concurrent.rs108 match this.futures.poll_next_unpin(cx) { in poll()
/external/rust/crates/futures-executor/src/
Dlocal_pool.rs299 self.pool.poll_next_unpin(cx) in poll_pool_once()