Registers the function ``f`` to the event name ``event``.
(self, event: Any, f: Any)
| 122 | return handler |
| 123 | |
| 124 | def on(self, event: Any, f: Any) -> None: |
| 125 | """Registers the function ``f`` to the event name ``event``.""" |
| 126 | self._impl_obj.on(event, self._wrap_handler(f)) |
| 127 | |
| 128 | def once(self, event: Any, f: Any) -> None: |
| 129 | """The same as ``self.on``, except that the listener is automatically |
no test coverage detected