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

Method gettimeout

crates/stdlib/src/socket.rs:2209–2212  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

2207
2208 #[pymethod]
2209 fn gettimeout(&self) -> Option<f64> {
2210 let timeout = self.timeout.load();
2211 if timeout >= 0.0 { Some(timeout) } else { None }
2212 }
2213
2214 #[pymethod]
2215 fn setblocking(&self, block: bool) -> io::Result<()> {

Callers

nothing calls this directly

Calls 2

SomeClass · 0.50
loadMethod · 0.45

Tested by

no test coverage detected