parallel
appimage_updater.core.parallel
¶
Concurrent processing utilities for AppImage Updater.
ConcurrentProcessor()
¶
Handles concurrent processing of application checks using async concurrency.
This processor uses asyncio.gather() to run multiple I/O-bound tasks concurrently, which is ideal for network operations like checking GitHub repositories for updates.
Source code in src/appimage_updater/core/parallel.py
process_items_async(items, async_worker_func)
async
¶
Process items using concurrent async tasks for I/O-bound operations.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
items
|
list[Any]
|
List of items to process |
required |
async_worker_func
|
Callable[[Any], Awaitable[Any]]
|
Async function to process each item |
required |
Returns:
Type | Description |
---|---|
list[Any]
|
List of processing results |