{"id":25360098,"url":"https://github.com/soenneker/soenneker.concurrentprocessing.executor","last_synced_at":"2026-06-06T02:09:45.982Z","repository":{"id":276330900,"uuid":"928938531","full_name":"soenneker/soenneker.concurrentprocessing.executor","owner":"soenneker","description":"A util that runs multiple async tasks concurrently with features for limiting and retry","archived":false,"fork":false,"pushed_at":"2026-02-28T08:41:39.000Z","size":621,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-02-28T13:06:52.814Z","etag":null,"topics":["concurrent","concurrentprocessing","concurrentprocessingexecutor","csharp","dotnet","executor","limit","parallel","processing","retry","tasks","util","valuetasks"],"latest_commit_sha":null,"homepage":"https://soenneker.com","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/soenneker.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":".github/CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":".github/SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":"soenneker","thanks_dev":"soenneker"}},"created_at":"2025-02-07T14:14:00.000Z","updated_at":"2026-02-28T07:21:45.000Z","dependencies_parsed_at":"2026-03-05T00:01:06.664Z","dependency_job_id":null,"html_url":"https://github.com/soenneker/soenneker.concurrentprocessing.executor","commit_stats":null,"previous_names":["soenneker/soenneker.concurrentprocessing.executor"],"tags_count":103,"template":false,"template_full_name":null,"purl":"pkg:github/soenneker/soenneker.concurrentprocessing.executor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soenneker%2Fsoenneker.concurrentprocessing.executor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soenneker%2Fsoenneker.concurrentprocessing.executor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soenneker%2Fsoenneker.concurrentprocessing.executor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soenneker%2Fsoenneker.concurrentprocessing.executor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/soenneker","download_url":"https://codeload.github.com/soenneker/soenneker.concurrentprocessing.executor/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soenneker%2Fsoenneker.concurrentprocessing.executor/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30101648,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-04T23:59:36.199Z","status":"ssl_error","status_checked_at":"2026-03-04T23:56:48.556Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["concurrent","concurrentprocessing","concurrentprocessingexecutor","csharp","dotnet","executor","limit","parallel","processing","retry","tasks","util","valuetasks"],"created_at":"2025-02-14T21:08:53.282Z","updated_at":"2026-05-13T03:13:52.435Z","avatar_url":"https://github.com/soenneker.png","language":"C#","funding_links":["https://github.com/sponsors/soenneker","https://thanks.dev/soenneker"],"categories":[],"sub_categories":[],"readme":"[![](https://img.shields.io/nuget/v/soenneker.concurrentprocessing.executor.svg?style=for-the-badge)](https://www.nuget.org/packages/soenneker.concurrentprocessing.executor/)\n[![](https://img.shields.io/github/actions/workflow/status/soenneker/soenneker.concurrentprocessing.executor/publish-package.yml?style=for-the-badge)](https://github.com/soenneker/soenneker.concurrentprocessing.executor/actions/workflows/publish-package.yml)\n[![](https://img.shields.io/nuget/dt/soenneker.concurrentprocessing.executor.svg?style=for-the-badge)](https://www.nuget.org/packages/soenneker.concurrentprocessing.executor/)\n[![](https://img.shields.io/github/actions/workflow/status/soenneker/soenneker.concurrentprocessing.executor/codeql.yml?label=CodeQL\u0026style=for-the-badge)](https://github.com/soenneker/soenneker.concurrentprocessing.executor/actions/workflows/codeql.yml)\n\n# ![](https://user-images.githubusercontent.com/4441470/224455560-91ed3ee7-f510-4041-a8d2-3fc093025112.png) Soenneker.ConcurrentProcessing.Executor\n\nThis executor efficiently handles multiple tasks with controlled concurrency. It is ideal for managing parallel execution of tasks while ensuring that no more than a specified number of tasks run simultaneously.\n\n### **Key Features**\n- **Concurrent Execution:** Limits the number of concurrent tasks to prevent overloading.\n- **Failure Handling with Retry Logic:** Automatically retries failed tasks with exponential backoff.\n- **Async Semaphore:** Uses a non-blocking semaphore to control concurrency and ensure thread safety.\n- **CancellationToken support** for task cancellation.\n\n?? **Note:**\n- This is not a background processor. It **only** manages concurrency for tasks that are provided during execution.\n\n---\n\n### **Installation**\n```\ndotnet add package Soenneker.ConcurrentProcessing.Executor\n```\n\n---\n\n### **Example: Executing Multiple Tasks with Concurrency Control**\n```csharp\nusing System;\nusing System.Collections.Generic;\nusing System.Threading;\nusing System.Threading.Tasks;\nusing Soenneker.ConcurrentProcessing.Executor;\n\npublic class Program\n{\n    public static async Task Main(string[] args)\n    {\n        var executor = new ConcurrentProcessingExecutor(maxConcurrency: 3);\n\n        var tasks = new List\u003cFunc\u003cCancellationToken, ValueTask\u003e\u003e\n        {\n            async (ct) =\u003e { \n                Console.WriteLine(\"Task 1 started\"); \n                await Task.Delay(500, ct); \n                Console.WriteLine(\"Task 1 completed\"); \n            },\n\n            async (ct) =\u003e { \n                Console.WriteLine(\"Task 2 started\"); \n                await Task.Delay(300, ct); \n                Console.WriteLine(\"Task 2 completed\"); \n            },\n\n            async (ct) =\u003e { \n                Console.WriteLine(\"Task 3 started\"); \n                await Task.Delay(700, ct); \n                Console.WriteLine(\"Task 3 completed\");\n            },\n\n            async (ct) =\u003e { \n                Console.WriteLine(\"Task 4 started\"); \n                await Task.Delay(400, ct); \n                Console.WriteLine(\"Task 4 completed\"); \n            }\n        };\n\n        await executor.Execute(tasks);\n    }\n}\n```\n\n### **Console Output**\n```shell\nTask 1 started\nTask 2 started\nTask 3 started\nTask 1 completed\nTask 4 started\nTask 2 completed\nTask 3 completed\nTask 4 completed\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoenneker%2Fsoenneker.concurrentprocessing.executor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsoenneker%2Fsoenneker.concurrentprocessing.executor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoenneker%2Fsoenneker.concurrentprocessing.executor/lists"}