background_task_manager

Background task manager for executing background tasks or task groups.

Module Contents

Classes

BackgroundTaskManager

Submit the background task or task group

class background_task_manager.BackgroundTaskManager

Submit the background task or task group

execute_one(coro, *, name=None, context=None)

Execute a single background task. and add it to the set of background tasks. so that it can be tracked and managed. :param coro: The coroutine to execute as a background task. :param name: Optional name for the task. :param context: Optional context to pass to the task.