Reformatted with black
This commit is contained in:
parent
be7ae5d8f2
commit
c9456e0837
|
@ -93,5 +93,5 @@ __all__ = [
|
||||||
"emit",
|
"emit",
|
||||||
"wait",
|
"wait",
|
||||||
"get_current_emitter",
|
"get_current_emitter",
|
||||||
"set_current_emitter"
|
"set_current_emitter",
|
||||||
]
|
]
|
||||||
|
|
|
@ -134,7 +134,9 @@ class AsyncEventEmitter:
|
||||||
# This implementation of emit() returns only after
|
# This implementation of emit() returns only after
|
||||||
# all handlers have finished executing
|
# all handlers have finished executing
|
||||||
await self._check_event(event)
|
await self._check_event(event)
|
||||||
temp: List[Tuple[int, float, Callable[["AsyncEventEmitter", str], Coroutine[Any, Any, Any]], bool]] = self.handlers[event].copy()
|
temp: List[
|
||||||
|
Tuple[int, float, Callable[["AsyncEventEmitter", str], Coroutine[Any, Any, Any]], bool]
|
||||||
|
] = self.handlers[event].copy()
|
||||||
t: Tuple[int, float, Callable[["AsyncEventEmitter", str], Coroutine[Any, Any, Any]], bool]
|
t: Tuple[int, float, Callable[["AsyncEventEmitter", str], Coroutine[Any, Any, Any]], bool]
|
||||||
while temp:
|
while temp:
|
||||||
# We use heappop because we want the first
|
# We use heappop because we want the first
|
||||||
|
|
Loading…
Reference in New Issue