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

Function remove_fd

crates/stdlib/src/select.rs:419–421  ·  view source on GitHub ↗
(fds: &mut Vec<pollfd>, fd: i32)

Source from the content-addressed store, hash-verified

417 }
418
419 fn remove_fd(fds: &mut Vec<pollfd>, fd: i32) -> Option<pollfd> {
420 search(fds, fd).ok().map(|i| fds.remove(i))
421 }
422
423 // new EventMask type
424 #[derive(Copy, Clone)]

Callers 1

unregisterMethod · 0.85

Calls 4

okMethod · 0.80
searchFunction · 0.70
mapMethod · 0.45
removeMethod · 0.45

Tested by

no test coverage detected