MCPcopy Create free account
hub / github.com/NVIDIA/NeMo-Relay / register_subscriber

Function register_subscriber

crates/python/src/py_api/mod.rs:1242–1245  ·  view source on GitHub ↗
(name: &str, callback: Py<PyAny>)

Source from the content-addressed store, hash-verified

1240/// RuntimeError: If a subscriber with this name already exists.
1241#[pyfunction]
1242fn register_subscriber(name: &str, callback: Py<PyAny>) -> PyResult<()> {
1243 core_subscriber_api::register_subscriber(name, py_callable::wrap_py_event_subscriber(callback))
1244 .map_err(to_py_err)
1245}
1246
1247/// Remove a previously registered event subscriber.
1248///

Calls 1

wrap_py_event_subscriberFunction · 0.85