MCPcopy Create free account
hub / github.com/0x676e67/wreq-python / __next__

Method __next__

src/client/blocking/response/ws.rs:112–119  ·  view source on GitHub ↗
(&self, py: Python)

Source from the content-addressed store, hash-verified

110 }
111
112 fn __next__(&self, py: Python) -> PyResult<Message> {
113 py.allow_threads(|| {
114 pyo3_async_runtimes::tokio::get_runtime()
115 .block_on(WebSocket::_anext(self.0.receiver(), || {
116 Error::StopIteration.into()
117 }))
118 })
119 }
120
121 fn __enter__(slf: PyRef<Self>) -> PyRef<Self> {
122 slf

Callers

nothing calls this directly

Calls 1

receiverMethod · 0.80

Tested by

no test coverage detected