Module concurrent

Module concurrent 

Source
Expand description

Concurrent task execution with controlled parallelism.

This module provides utilities for executing multiple independent database operations in parallel while respecting concurrency limits to avoid overwhelming the database connection pool.

Structs§

ConcurrencyConfig
Configuration for concurrent execution.
ConcurrentExecutor
Executor for running concurrent tasks with controlled parallelism.
ExecutionStats
Statistics from concurrent execution.
TaskError
Error from concurrent task execution.

Enums§

TaskResult
Result of a single task.

Functions§

execute_batch
Helper for executing a batch of similar operations concurrently.
execute_chunked
Execute operations in parallel chunks.