(ms: u64, future: T)
| 95 | |
| 96 | #[inline] |
| 97 | pub fn timeout<T: std::future::Future>(ms: u64, future: T) -> tokio::time::Timeout<T> { |
| 98 | tokio::time::timeout(std::time::Duration::from_millis(ms), future) |
| 99 | } |
| 100 | |
| 101 | pub type ResultType<F, E = anyhow::Error> = anyhow::Result<F, E>; |
| 102 |
no outgoing calls