(mut self: Pin<&mut Self>, task: &mut task::Context<'_>)
| 598 | { |
| 599 | type Output = (); |
| 600 | fn poll(mut self: Pin<&mut Self>, task: &mut task::Context<'_>) -> Poll<()> { |
| 601 | for i in 0..self.times { |
| 602 | match Pin::new(&mut self.future).poll(task) { |
| 603 | Poll::Ready(v) => panic!("future should not be ready at {i}; result is {v:?}"), |
| 604 | Poll::Pending => {} |
| 605 | } |
| 606 | } |
| 607 | |
| 608 | Poll::Ready(()) |
| 609 | } |
| 610 | } |
| 611 | |
| 612 | // helper struct to decrement a counter on drop |
no test coverage detected