(&self, res: &PyResult<PyIterReturn>)
| 583 | } |
| 584 | |
| 585 | fn ignored_close(&self, res: &PyResult<PyIterReturn>) -> bool { |
| 586 | res.as_ref().is_ok_and(|v| match v { |
| 587 | PyIterReturn::Return(obj) => obj.downcastable::<PyAsyncGenWrappedValue>(), |
| 588 | PyIterReturn::StopIteration(_) => false, |
| 589 | }) |
| 590 | } |
| 591 | fn yield_close(&self, vm: &VirtualMachine) -> PyBaseExceptionRef { |
| 592 | self.ag.running_async.store(false); |
| 593 | self.ag.inner.closed.store(true); |