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

Method unregister

crates/stdlib/src/select.rs:482–487  ·  view source on GitHub ↗
(&self, Fildes(fd): Fildes, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

480
481 #[pymethod]
482 fn unregister(&self, Fildes(fd): Fildes, vm: &VirtualMachine) -> PyResult<()> {
483 let removed = remove_fd(&mut self.fds.lock(), fd);
484 removed
485 .map(drop)
486 .ok_or_else(|| vm.new_key_error(vm.ctx.new_int(fd).into()))
487 }
488
489 #[pymethod]
490 fn poll(

Callers

nothing calls this directly

Calls 9

remove_fdFunction · 0.85
deleteClass · 0.85
ok_or_elseMethod · 0.80
new_key_errorMethod · 0.80
get_epollMethod · 0.80
lockMethod · 0.45
mapMethod · 0.45
new_intMethod · 0.45
into_pyexceptionMethod · 0.45

Tested by

no test coverage detected