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

Method builtin_coro

crates/vm/src/frame.rs:6796–6802  ·  view source on GitHub ↗
(&self, coro: &'a PyObject)

Source from the content-addressed store, hash-verified

6794 }
6795
6796 fn builtin_coro<'a>(&self, coro: &'a PyObject) -> Option<&'a Coro> {
6797 match_class!(match coro {
6798 ref g @ PyGenerator => Some(g.as_coro()),
6799 ref c @ PyCoroutine => Some(c.as_coro()),
6800 _ => None,
6801 })
6802 }
6803
6804 fn _send(
6805 &self,

Callers 3

gen_throwMethod · 0.80
execute_instructionMethod · 0.80
_sendMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected