MCPcopy
hub / github.com/hacs/integration / add

Method add

custom_components/hacs/utils/queue_manager.py:39–41  ·  view source on GitHub ↗

Add a task to the queue.

(self, task: Coroutine)

Source from the content-addressed store, hash-verified

37 self.queue = []
38
39 def add(self, task: Coroutine) -> None:
40 """Add a task to the queue."""
41 self.queue.append(task)
42
43 async def execute(self, number_of_tasks: int | None = None) -> None:
44 """Execute the tasks in the queue."""

Callers 13

download_contentMethod · 0.95
test_queue_managerFunction · 0.95
registerMethod · 0.45
mark_defaultMethod · 0.45
enable_hacs_categoryMethod · 0.45
validate_repo_dataFunction · 0.45
restoreMethod · 0.45
hacs_repository_ignoreFunction · 0.45

Calls

no outgoing calls

Tested by 1

test_queue_managerFunction · 0.76