(
self, handler: Union[Callable[..., Any], Any]
)
| 115 | return task.result() |
| 116 | |
| 117 | def _wrap_handler( |
| 118 | self, handler: Union[Callable[..., Any], Any] |
| 119 | ) -> Callable[..., None]: |
| 120 | if callable(handler): |
| 121 | return mapping.wrap_handler(handler) |
| 122 | return handler |
| 123 | |
| 124 | def on(self, event: Any, f: Any) -> None: |
| 125 | """Registers the function ``f`` to the event name ``event``.""" |
no test coverage detected