MCPcopy Create free account
hub / github.com/enviodev/hypersync-client-python / recv

Method recv

src/response.rs:78–88  ·  view source on GitHub ↗
(&self, py: Python<'py>)

Source from the content-addressed store, hash-verified

76 }
77
78 pub fn recv<'py>(&self, py: Python<'py>) -> PyResult<Bound<'py, PyAny>> {
79 let inner = Arc::clone(&self.inner);
80
81 future_into_py(py, async move {
82 let resp = inner.lock().await.recv().await;
83
84 resp.map(|r| convert_response(r?).context("convert response"))
85 .transpose()
86 .map_err(Into::into)
87 })
88 }
89}
90
91#[pyclass]

Callers 4

mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45

Calls 3

convert_responseFunction · 0.85
convert_event_responseFunction · 0.85
response_to_pyarrowFunction · 0.85

Tested by

no test coverage detected