From cf16350107a4ffd6a48d258a47fffc0733c138b2 Mon Sep 17 00:00:00 2001 From: jb3 Date: Fri, 17 Oct 2025 18:04:11 +0000 Subject: Deploying to docs from @ python-discord/bot-core@9f0162c0869ee8e0ae158636c8f0eac96159a675 🚀 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- v9.9.2/output/pydis_core.utils.scheduling.html | 54 +++++++++++++------------- 1 file changed, 27 insertions(+), 27 deletions(-) (limited to 'v9.9.2/output/pydis_core.utils.scheduling.html') diff --git a/v9.9.2/output/pydis_core.utils.scheduling.html b/v9.9.2/output/pydis_core.utils.scheduling.html index f4b6d834..b5c34e4d 100644 --- a/v9.9.2/output/pydis_core.utils.scheduling.html +++ b/v9.9.2/output/pydis_core.utils.scheduling.html @@ -10,8 +10,8 @@ - + @@ -470,7 +470,7 @@
class Scheduler(name)[source]¶
-

Bases: object

+

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 instance’s log messages from other instances. Using the name of the class or module containing @@ -484,16 +484,16 @@ the same ID used to schedule it.

__contains__(task_id)[source]¶
-

Return True if a task with the given task_id is currently scheduled.

+

Return True if a task with the given task_id is currently scheduled.

Parameters:
-

task_id (Hashable) – The task to look for.

+

task_id (Hashable) – The task to look for.

Return type:
-

bool

+

bool

Returns:
-

True if the task was found.

+

True if the task was found.

@@ -504,7 +504,7 @@ the same ID used to schedule it.

Initialize a new Scheduler instance.

Parameters:
-

name (str) – The name of the Scheduler. Used in logging, and namespacing.

+

name (str) – The name of the Scheduler. Used in logging, and namespacing.

@@ -515,10 +515,10 @@ the same ID used to schedule it.

Unschedule the task identified by task_id. Log a warning if the task doesn’t exist.

Parameters:
-

task_id (Hashable) – The task’s unique ID.

+

task_id (Hashable) – The task’s unique ID.

Return type:
-

None

+

None

@@ -529,7 +529,7 @@ the same ID used to schedule it.

Unschedule all known tasks.

Return type:
-

None

+

None

@@ -543,12 +543,12 @@ prevents unawaited coroutine warnings. Don’t pass a coroutine that’ll be re-
Parameters:
    -
  • task_id (Hashable) – A unique ID to create the task with.

  • -
  • coroutine (Coroutine) – The function to be called.

  • +
  • task_id (Hashable) – A unique ID to create the task with.

  • +
  • coroutine (Coroutine) – The function to be called.

Return type:
-

None

+

None

@@ -565,13 +565,13 @@ prevents unawaited coroutine warnings. Don’t pass a coroutine that’ll be re-
Parameters:
    -
  • 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.

Return type:
-

None

+

None

@@ -585,13 +585,13 @@ prevents unawaited coroutine warnings. Don’t pass a coroutine that’ll be re-
Parameters:
    -
  • delay (int | 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 (int | 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.

Return type:
-

None

+

None

@@ -601,23 +601,23 @@ prevents unawaited coroutine warnings. Don’t pass a coroutine that’ll be re-
create_task(coro, *, suppressed_exceptions=(), event_loop=None, **kwargs)[source]¶
-

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.

Parameters:
Returns:

The wrapped task.

Return type:
-

asyncio.Task

+

asyncio.Task

-- cgit v1.2.3