(name: &str, callback: Py<PyAny>)
| 1240 | /// RuntimeError: If a subscriber with this name already exists. |
| 1241 | #[pyfunction] |
| 1242 | fn 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 | /// |