From 9690f8b7febe955937b56fb2bb464af62c08af68 Mon Sep 17 00:00:00 2001 From: mbaruh <8bee278@gmail.com> Date: Thu, 21 Apr 2022 20:56:32 +0000 Subject: Deploying to docs from @ python-discord/bot-core@486db9918e04afae84ae603ef96181608e70b77e 🚀 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- output/botcore.utils.scheduling.html | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'output/botcore.utils.scheduling.html') diff --git a/output/botcore.utils.scheduling.html b/output/botcore.utils.scheduling.html index cb652cd1..21825f3a 100644 --- a/output/botcore.utils.scheduling.html +++ b/output/botcore.utils.scheduling.html @@ -218,7 +218,7 @@
Generic python scheduler.
Bases: object
Schedule the execution of coroutines and keep track of them.
When instantiating a Scheduler, a name must be provided. This name is used to distinguish the
@@ -232,7 +232,7 @@ the same ID used to schedule it.
Any exception raised in a scheduled task is logged when the task is done.
Return True if a task with the given task_id is currently scheduled.
Initialize a new Scheduler instance.
Unschedule the task identified by task_id. Log a warning if the task doesn’t exist.
Unschedule all known tasks.
Schedule the execution of a coroutine.
If a task with task_id already exists, close coroutine instead of scheduling it. This
prevents unawaited coroutine warnings. Don’t pass a coroutine that’ll be re-used elsewhere.
Schedule coroutine to be executed at the given time.
If time is timezone aware, then use that timezone to calculate now() when subtracting.
If time is naĂŻve, then use UTC.
Schedule coroutine to be executed after delay seconds.
If a task with task_id already exists, close coroutine instead of scheduling it. This
prevents unawaited coroutine warnings. Don’t pass a coroutine that’ll be re-used elsewhere.
Wrapper for creating an asyncio.Task which logs exceptions raised in the task.
If the event_loop kwarg is provided, the task is created from that event loop,
otherwise the running loop is used.