MCPcopy Index your code
hub / github.com/RustPython/RustPython / ignored_close

Method ignored_close

crates/vm/src/builtins/asyncgenerator.rs:585–590  ·  view source on GitHub ↗
(&self, res: &PyResult<PyIterReturn>)

Source from the content-addressed store, hash-verified

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);

Callers 2

sendMethod · 0.80
throwMethod · 0.80

Calls 1

as_refMethod · 0.45

Tested by

no test coverage detected