mirror of
https://github.com/nocturn9x/asyncevents.git
synced 2026-10-05 08:32:32 +02:00
Moved comment in events.py to relevant code section
This commit is contained in:
1 parent
9b13fab6d8
commit
be7ae5d8f2
1 file changed
+2
-2
@@ -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
|
||||
|
||||
Reference in new issue
Block a user