{"id":27201088,"url":"https://github.com/gregl83/threaded","last_synced_at":"2025-07-24T18:16:54.935Z","repository":{"id":57669698,"uuid":"329603752","full_name":"gregl83/threaded","owner":"gregl83","description":"Minimalist Thread Pool","archived":false,"fork":false,"pushed_at":"2021-01-16T22:41:15.000Z","size":34,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-16T04:58:32.960Z","etag":null,"topics":["multithreading","rust","thread-pool","threads"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/gregl83.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}},"created_at":"2021-01-14T12:07:09.000Z","updated_at":"2021-01-16T22:36:24.000Z","dependencies_parsed_at":"2022-09-26T20:40:34.470Z","dependency_job_id":null,"html_url":"https://github.com/gregl83/threaded","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/gregl83/threaded","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gregl83%2Fthreaded","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gregl83%2Fthreaded/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gregl83%2Fthreaded/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gregl83%2Fthreaded/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gregl83","download_url":"https://codeload.github.com/gregl83/threaded/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gregl83%2Fthreaded/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266886031,"owners_count":24001045,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-24T02:00:09.469Z","response_time":99,"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":["multithreading","rust","thread-pool","threads"],"created_at":"2025-04-09T21:55:06.938Z","updated_at":"2025-07-24T18:16:54.879Z","avatar_url":"https://github.com/gregl83.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Crates.io](https://img.shields.io/crates/v/threaded.svg)](https://crates.io/crates/threaded)\n[![MIT licensed](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/gregl83/threaded/blob/master/LICENSE)\n[![Build Status](https://github.com/gregl83/threaded/workflows/CI/badge.svg?branch=main)](https://github.com/gregl83/threaded/actions?query=workflow%3ACI+branch%3Amain)\n# threaded\n\nMinimalist Thread Pool in Rust\n\nGlanceable source code for prototypes seeking brevity with transparency.\n\n## Stability\n\nExperimental\n\nThreaded is not fully covered nor benched let alone comparatively performance tested.\n\n## Branching Strategy\n\n[Trunk Based Development](https://trunkbaseddevelopment.com/)\n\n## Usage\n\n```rust\nuse threaded::ThreadPool;\n\n// start thread pool with fixed capacity of 2 workers (single producer, multiple consumer; spmc)\nlet tp = ThreadPool::new(2);\n\ntp.execute(|| println!(\"hello threaded!\")); // execute function in pool\n\nlet _num_workers = tp.capacity(); // get capacity of pool\n\n// once tp goes out of scope, drop is called\n// drop joins worker threads subsequently blocking main thread until workers finish\n\ndrop(tp); // manually trigger drop and join threads\n```\n\nSee [docs.rs/threaded](https://docs.rs/threaded/).\n\n## Credits\n\nThe [Rust Programming Language Book](https://doc.rust-lang.org/book/) details integral features needed to begin writing useful programs while adhering to community guidelines. Threaded was based directly off the book's final project [\"Building a Multithreaded Web Server\"](https://doc.rust-lang.org/book/ch20-00-final-project-a-web-server.html).\n\n# License\n\n[MIT](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgregl83%2Fthreaded","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgregl83%2Fthreaded","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgregl83%2Fthreaded/lists"}