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§
- Concurrency
Config - Configuration for concurrent execution.
- Concurrent
Executor - Executor for running concurrent tasks with controlled parallelism.
- Execution
Stats - Statistics from concurrent execution.
- Task
Error - Error from concurrent task execution.
Enums§
- Task
Result - Result of a single task.
Functions§
- execute_
batch - Helper for executing a batch of similar operations concurrently.
- execute_
chunked - Execute operations in parallel chunks.