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

Function is_cancelled_error_obj

crates/stdlib/src/_asyncio.rs:2760–2765  ·  view source on GitHub ↗
(obj: &PyObjectRef, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

2758 }
2759
2760 fn is_cancelled_error_obj(obj: &PyObjectRef, vm: &VirtualMachine) -> bool {
2761 match get_cancelled_error_type(vm) {
2762 Ok(cancelled_error) => obj.fast_isinstance(&cancelled_error),
2763 Err(_) => false,
2764 }
2765 }
2766}

Callers 1

task_step_implFunction · 0.85

Calls 2

get_cancelled_error_typeFunction · 0.85
fast_isinstanceMethod · 0.80

Tested by

no test coverage detected