Moved comment in events.py to relevant code section
This commit is contained in:
parent
9b13fab6d8
commit
be7ae5d8f2
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue