We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6d26ee0 commit bb818ccCopy full SHA for bb818cc
benches/support/tokiort.rs
@@ -49,21 +49,6 @@ impl Timer for TokioTimer {
49
}
50
51
52
-struct TokioTimeout<T> {
53
- inner: Pin<Box<tokio::time::Timeout<T>>>,
54
-}
55
-
56
-impl<T> Future for TokioTimeout<T>
57
-where
58
- T: Future,
59
-{
60
- type Output = Result<T::Output, tokio::time::error::Elapsed>;
61
62
- fn poll(mut self: Pin<&mut Self>, context: &mut Context<'_>) -> Poll<Self::Output> {
63
- self.inner.as_mut().poll(context)
64
- }
65
66
67
// Use TokioSleep to get tokio::time::Sleep to implement Unpin.
68
// see https://docs.rs/tokio/latest/tokio/time/struct.Sleep.html
69
pin_project! {
0 commit comments