(mut self: Pin<&mut Self>, context: &mut Context<'_>)
| 615 | type Output = (); |
| 616 | |
| 617 | fn poll(mut self: Pin<&mut Self>, context: &mut Context<'_>) -> Poll<()> { |
| 618 | if self.yielded { |
| 619 | Poll::Ready(()) |
| 620 | } else { |
| 621 | self.yielded = true; |
| 622 | context.waker().wake_by_ref(); |
| 623 | Poll::Pending |
| 624 | } |
| 625 | } |
| 626 | } |
| 627 | |
| 628 | Yield::default().await; |
no test coverage detected