aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRapptz <[email protected]>2020-01-21 20:39:15 -0500
committerRapptz <[email protected]>2020-01-21 20:39:15 -0500
commit706a33328714efa12d07260ad0e321605e573882 (patch)
tree17cd3ee0f15df0bc88be17e271a6f1d6b4555b5c
parentImprove usability of utils.sleep_until (diff)
downloaddiscord.py-706a33328714efa12d07260ad0e321605e573882.tar.xz
discord.py-706a33328714efa12d07260ad0e321605e573882.zip
Add missing coroutine header for sleep_until
-rw-r--r--discord/utils.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/discord/utils.py b/discord/utils.py
index f9fc20ac..dd816e69 100644
--- a/discord/utils.py
+++ b/discord/utils.py
@@ -340,7 +340,9 @@ async def sane_wait_for(futures, *, timeout):
return done
async def sleep_until(when, result=None):
- """Sleep until a specified time.
+ """|coro|
+
+ Sleep until a specified time.
If the time supplied is in the past this function will yield instantly.