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

Function is_cancelled_error

crates/stdlib/src/_asyncio.rs:2753–2758  ·  view source on GitHub ↗
(exc: &PyBaseExceptionRef, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

2751 }
2752
2753 fn is_cancelled_error(exc: &PyBaseExceptionRef, vm: &VirtualMachine) -> bool {
2754 match get_cancelled_error_type(vm) {
2755 Ok(cancelled_error) => exc.fast_isinstance(&cancelled_error),
2756 Err(_) => false,
2757 }
2758 }
2759
2760 fn is_cancelled_error_obj(obj: &PyObjectRef, vm: &VirtualMachine) -> bool {
2761 match get_cancelled_error_type(vm) {

Callers 1

Calls 2

get_cancelled_error_typeFunction · 0.85
fast_isinstanceMethod · 0.80

Tested by

no test coverage detected