From cf16350107a4ffd6a48d258a47fffc0733c138b2 Mon Sep 17 00:00:00 2001
From: jb3 Bases: Bases: Schedule the execution of coroutines and keep track of them. When instantiating a
objectobjectScheduler, a name must be provided. This name is used to distinguish the
instance’s log messages from other instances. Using the name of the class or module containing
@@ -495,16 +495,16 @@ the same ID used to schedule it.
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.
time (datetime) – The time to start the task.
task_id (Hashable) – A unique ID to create the task with.
coroutine (Coroutine) – The function to be called.
time (datetime) – The time to start the task.
task_id (Hashable) – A unique ID to create the task with.
coroutine (Coroutine) – The function to be called.
delay (float) – How long to wait before starting the task.
task_id (Hashable) – A unique ID to create the task with.
coroutine (Coroutine) – The function to be called.
delay (float) – How long to wait before starting the task.
task_id (Hashable) – A unique ID to create the task with.
coroutine (Coroutine) – The function to be called.
Wrapper for creating an asyncio.Task which logs exceptions raised in the task.
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.
coro (Coroutine[Any, Any, TypeVar(TASK_RETURN)]) – The function to call.
suppressed_exceptions (tuple[type[Exception], ...]) – Exceptions to be handled by the task.
event_loop (asyncio.AbstractEventLoop) – The loop to create the task from.
kwargs – Passed to asyncio.create_task().
coro (Coroutine[Any, Any, TypeVar(TASK_RETURN)]) – The function to call.
suppressed_exceptions (tuple[type[Exception], ...]) – Exceptions to be handled by the task.
event_loop (asyncio.AbstractEventLoop) – The loop to create the task from.
kwargs – Passed to asyncio.create_task().
The wrapped task.