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

Method setblocking

crates/stdlib/src/socket.rs:2215–2218  ·  view source on GitHub ↗
(&self, block: bool)

Source from the content-addressed store, hash-verified

2213
2214 #[pymethod]
2215 fn setblocking(&self, block: bool) -> io::Result<()> {
2216 self.timeout.store(if block { -1.0 } else { 0.0 });
2217 self.sock()?.set_nonblocking(!block)
2218 }
2219
2220 #[pymethod]
2221 fn getblocking(&self) -> bool {

Callers

nothing calls this directly

Calls 2

sockMethod · 0.80
storeMethod · 0.45

Tested by

no test coverage detected