{"id":22812392,"url":"https://github.com/jpmikkers/baksteen.async.concurrentprocessingqueue","last_synced_at":"2026-04-27T12:01:43.780Z","repository":{"id":208852353,"uuid":"722641580","full_name":"jpmikkers/Baksteen.Async.ConcurrentProcessingQueue","owner":"jpmikkers","description":"Async queue that automatically processes items concurrently with a specified parallelism limit","archived":false,"fork":false,"pushed_at":"2023-12-01T12:59:15.000Z","size":112,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-30T21:33:05.239Z","etag":null,"topics":["csharp","dispatcher","dispatchqueue","dotnet","multiprocessing","multithreading","parallel","parallel-computing","queue"],"latest_commit_sha":null,"homepage":"","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/jpmikkers.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-11-23T15:31:32.000Z","updated_at":"2023-12-26T14:03:52.000Z","dependencies_parsed_at":"2023-12-10T11:44:20.881Z","dependency_job_id":null,"html_url":"https://github.com/jpmikkers/Baksteen.Async.ConcurrentProcessingQueue","commit_stats":{"total_commits":7,"total_committers":1,"mean_commits":7.0,"dds":0.0,"last_synced_commit":"4c2ab071cc2e45707e85e0a85262e89e2c8910e9"},"previous_names":["jpmikkers/baksteen.async.concurrentprocessingqueue"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/jpmikkers/Baksteen.Async.ConcurrentProcessingQueue","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpmikkers%2FBaksteen.Async.ConcurrentProcessingQueue","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpmikkers%2FBaksteen.Async.ConcurrentProcessingQueue/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpmikkers%2FBaksteen.Async.ConcurrentProcessingQueue/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpmikkers%2FBaksteen.Async.ConcurrentProcessingQueue/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jpmikkers","download_url":"https://codeload.github.com/jpmikkers/Baksteen.Async.ConcurrentProcessingQueue/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpmikkers%2FBaksteen.Async.ConcurrentProcessingQueue/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32335297,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-26T23:26:28.701Z","status":"online","status_checked_at":"2026-04-27T02:00:06.769Z","response_time":128,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["csharp","dispatcher","dispatchqueue","dotnet","multiprocessing","multithreading","parallel","parallel-computing","queue"],"created_at":"2024-12-12T12:12:17.931Z","updated_at":"2026-04-27T12:01:43.764Z","avatar_url":"https://github.com/jpmikkers.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Baksteen.Async.ConcurrentProcessingQueue\nAsync queue that automatically processes items concurrently with a specified parallelism limit.\n\n## Diagram\n![docs/diagram.png](docs/diagram.png)\n\n## Usage\n\n```csharp\nusing System;\nusing System.Threading;\nusing System.Threading.Tasks;\nusing Baksteen.Async;\n\n// create queue with a capacity of 5 items and a maximum of 8 concurrent process threads\n// please note the 'await using' as this class is IAsyncDisposable\nawait using(var queue = new ConcurrentProcessingQueue\u003cint\u003e(5, 8, processItem))\n{\n    for(int t = 0; t \u003c 100; t++)\n    {\n        Console.WriteLine($\"enqueueing {t}\");\n        await queue.Enqueue(t);\n    }\n    await queue.WaitForCompletion();  // this will wait until all items have been processed\n}\n\nstatic async ValueTask processItem(int x, CancellationToken ct)\n{\n    Console.WriteLine($\"processing item {x}\");\n    // simulate some processing work:\n    await Task.Delay(Random.Shared.Next(500, 2000), ct);\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjpmikkers%2Fbaksteen.async.concurrentprocessingqueue","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjpmikkers%2Fbaksteen.async.concurrentprocessingqueue","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjpmikkers%2Fbaksteen.async.concurrentprocessingqueue/lists"}