mirror of
https://github.com/Rapptz/discord.py.git
synced 2026-11-20 13:29:03 +00:00
Refactor loop code to allow usage of asyncio.run
This commit is contained in:
1 parent
196db33e9f
commit
93af158b0c
9 files changed
+44
-136
No files matched your search
@@ -297,7 +297,7 @@ class _Semaphore:
|
||||
|
||||
def __init__(self, number: int) -> None:
|
||||
self.value: int = number
|
||||
self.loop: asyncio.AbstractEventLoop = asyncio.get_event_loop()
|
||||
self.loop: asyncio.AbstractEventLoop = asyncio.get_running_loop()
|
||||
self._waiters: Deque[asyncio.Future] = deque()
|
||||
|
||||
def __repr__(self) -> str:
|
||||
|
||||
Reference in new issue
Block a user