(mut self: Pin<&mut Self>, cx: &mut Context<'_>)
| 568 | type Output = (); |
| 569 | |
| 570 | fn poll(mut self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output> { |
| 571 | if self.yielded { |
| 572 | Poll::Ready(()) |
| 573 | } else { |
| 574 | self.yielded = true; |
| 575 | cx.waker().wake_by_ref(); |
| 576 | Poll::Pending |
| 577 | } |
| 578 | } |
| 579 | } |
| 580 | |
| 581 | /// Shared runnable queue used by the simulation executor. |