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

Method yield_close

crates/vm/src/builtins/asyncgenerator.rs:591–596  ·  view source on GitHub ↗
(&self, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

589 })
590 }
591 fn yield_close(&self, vm: &VirtualMachine) -> PyBaseExceptionRef {
592 self.ag.running_async.store(false);
593 self.ag.inner.closed.store(true);
594 self.state.store(AwaitableState::Closed);
595 vm.new_runtime_error("async generator ignored GeneratorExit")
596 }
597 fn check_error(&self, exc: PyBaseExceptionRef, vm: &VirtualMachine) -> PyBaseExceptionRef {
598 self.ag.running_async.store(false);
599 self.ag.inner.closed.store(true);

Callers 2

sendMethod · 0.80
throwMethod · 0.80

Calls 1

storeMethod · 0.45

Tested by

no test coverage detected