I just made a new crate, `threadpools`, I'm very proud of it ๐Ÿ˜Š

215 points DynaBeast 59 comments

https://docs.rs/threadpools

I know there are already other multithreading & threadpool crates available, but I wanted to make one that reflects the way I always end up writing them, with all the functionality, utility, capabilities, and design patterns I always end up repeating when working within my own code. Also, I'm a proponent of low dependency code, so this is a zero-dependency crate, using only rust standard library features (w/ some nightly experimental apis).

I designed them to be flexible, modular, and configurable for any situation you might want to use them for, while also providing a suite of simple and easy to use helper methods to quickly spin up common use cases. I only included the core feature set of things I feel like myself and others would actually use, with very few features added "for fun" or just because I could. If there's anything missing from my implementation that you think you'd find useful, let me know and I'll think about adding it!

Everything's fully documented with plenty of examples and test cases, so if anything's left unclear, let me know and I'd love to remedy it immediately.

Thank you and I hope you enjoy my crate! ๐Ÿ’œ