Searched refs:timeout_at (Results 1 – 4 of 4) sorted by relevance
/external/rust/crates/tokio/tests/ |
D | time_timeout.rs | 5 use tokio::time::{self, timeout, timeout_at, Instant}; 14 let mut fut = task::spawn(timeout_at(Instant::now(), async {})); in simultaneous_deadline_future_completion() 23 let mut fut = task::spawn(timeout_at(Instant::now() - ms(1000), async {})); in completed_future_past_deadline() 37 let mut fut = task::spawn(timeout_at(Instant::now() + ms(100), rx)); in future_and_deadline_in_future() 111 let mut fut = task::spawn(timeout_at(Instant::now(), pending::<()>())); in deadline_now_elapses() 125 let mut fut = task::spawn(timeout_at(Instant::now() + ms(300), pending::<()>())); in deadline_future_elapses()
|
D | async_send_sync.rs | 311 async_assert_fn!(tokio::time::timeout_at(Instant, BoxFutureSync<()>): Send & Sync); 312 async_assert_fn!(tokio::time::timeout_at(Instant, BoxFutureSend<()>): Send & !Sync); 313 async_assert_fn!(tokio::time::timeout_at(Instant, BoxFuture<()>): !Send & !Sync); 320 async_assert_fn!(tokio::time::timeout_at(Instant, BoxFuture<()>): !Unpin);
|
/external/rust/crates/tokio/src/time/ |
D | mod.rs | 107 pub use timeout::{timeout, timeout_at, Timeout};
|
D | timeout.rs | 94 pub fn timeout_at<T>(deadline: Instant, future: T) -> Timeout<T> in timeout_at() function
|