Browse Source

Use future instead of event

pull/10287/head
imp 2 months ago
committed by GitHub
parent
commit
0bfd5a72a0
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 4
      discord/http.py

4
discord/http.py

@ -502,8 +502,8 @@ class Ratelimit:
async def release(self):
if not self.one_shot:
self.outgoing -= 1
self._event.set()
self._event.clear()
if self._future and not self._future.done():
self._future.set_result(None)
async def __aenter__(self) -> Self:
await self.acquire()

Loading…
Cancel
Save