diff --git a/asyncevents/events.py b/asyncevents/events.py index 43c37b3..cb3d75c 100644 --- a/asyncevents/events.py +++ b/asyncevents/events.py @@ -62,8 +62,6 @@ class AsyncEventEmitter: :type mode: ExecutionMode """ - # Implementations for emit() - async def _check_event(self, event: str): """ Performs checks about the given event @@ -103,6 +101,8 @@ class AsyncEventEmitter: self.logger.error(f"An exception occurred while handling {event!r}: {type(e).__name__} -> {e}") # Note how the IGNORE case is excluded: we just do nothing after all + # Implementations for emit() + async def _emit_nowait(self, event: str): # This implementation of emit() returns immediately # and runs the handlers in the background