(&self, context: &mut Context<'_>)
| 79 | |
| 80 | impl<'a: 'b, 'b> JFutureIntoFuture<'a, 'b> { |
| 81 | fn poll_internal(&self, context: &mut Context<'_>) -> Result<Poll<JPollResult<'a, 'b>>> { |
| 82 | use super::task::waker; |
| 83 | let result = self.0.poll(waker(self.0.env, context.waker().clone())?)?; |
| 84 | Ok( |
| 85 | if self.0.env.is_same_object(result.clone(), JObject::null())? { |
| 86 | Poll::Pending |
| 87 | } else { |
| 88 | Poll::Ready(result) |
| 89 | }, |
| 90 | ) |
| 91 | } |
| 92 | } |
| 93 | |
| 94 | impl<'a: 'b, 'b> Future for JFutureIntoFuture<'a, 'b> { |
no test coverage detected