Lines Matching refs:fut
14 let mut fut = task::spawn(timeout_at(Instant::now(), async {})); in simultaneous_deadline_future_completion() localVariable
17 assert_ready_ok!(fut.poll()); in simultaneous_deadline_future_completion()
24 let mut fut = task::spawn(timeout_at(Instant::now() - ms(1000), async {})); in completed_future_past_deadline() localVariable
27 assert_ready_ok!(fut.poll()); in completed_future_past_deadline()
38 let mut fut = task::spawn(timeout_at(Instant::now() + ms(100), rx)); in future_and_deadline_in_future() localVariable
40 assert_pending!(fut.poll()); in future_and_deadline_in_future()
45 assert_pending!(fut.poll()); in future_and_deadline_in_future()
49 assert!(fut.is_woken()); in future_and_deadline_in_future()
51 assert_ready_ok!(fut.poll()).unwrap(); in future_and_deadline_in_future()
62 let mut fut = task::spawn(timeout(ms(100), rx)); in future_and_timeout_in_future() localVariable
65 assert_pending!(fut.poll()); in future_and_timeout_in_future()
70 assert_pending!(fut.poll()); in future_and_timeout_in_future()
75 assert_ready_ok!(fut.poll()).unwrap(); in future_and_timeout_in_future()
89 let mut fut = task::spawn(timeout(duration_max, rx)); in very_large_timeout() localVariable
92 assert_pending!(fut.poll()); in very_large_timeout()
97 assert_pending!(fut.poll()); in very_large_timeout()
102 assert_ready_ok!(fut.poll()).unwrap(); in very_large_timeout()
112 let mut fut = task::spawn(timeout_at(Instant::now(), pending::<()>())); in deadline_now_elapses() localVariable
118 assert_ready_err!(fut.poll()); in deadline_now_elapses()
126 let mut fut = task::spawn(timeout_at(Instant::now() + ms(300), pending::<()>())); in deadline_future_elapses() localVariable
128 assert_pending!(fut.poll()); in deadline_future_elapses()
132 assert!(fut.is_woken()); in deadline_future_elapses()
133 assert_ready_err!(fut.poll()); in deadline_future_elapses()
142 let fut = timeout(ms(1), async { in timeout_is_not_exhausted_by_future() localVariable
150 assert!(fut.await.is_err()); in timeout_is_not_exhausted_by_future()