diff options
| author | Rapptz <[email protected]> | 2020-01-21 20:39:15 -0500 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2020-01-21 20:39:15 -0500 |
| commit | 706a33328714efa12d07260ad0e321605e573882 (patch) | |
| tree | 17cd3ee0f15df0bc88be17e271a6f1d6b4555b5c | |
| parent | Improve usability of utils.sleep_until (diff) | |
| download | discord.py-706a33328714efa12d07260ad0e321605e573882.tar.xz discord.py-706a33328714efa12d07260ad0e321605e573882.zip | |
Add missing coroutine header for sleep_until
| -rw-r--r-- | discord/utils.py | 4 |
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. |