Moved comment in events.py to relevant code section

This commit is contained in:
nocturn9x 2021-12-24 19:14:10 +01:00
parent 9b13fab6d8
commit be7ae5d8f2
1 changed files with 2 additions and 2 deletions

View File

@ -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