rahat3062_pool 0.1.0

A simple, efficient thread pool for Rust.❤️
Documentation
  • Coverage
  • 75%
    3 out of 4 items documented2 out of 3 items with examples
  • Size
  • Source code size: 10.14 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 327.14 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • ToxicalNoob3062

ThreadPool

A simple, efficient thread pool for Rust.

Overview

This crate provides a ThreadPool struct that allows you to execute jobs on a pool of worker threads. It's useful for offloading CPU-intensive or blocking I/O tasks to a separate set of threads, to avoid blocking the main thread of your application.

Features

  • Easy to use: Just create a ThreadPool and start adding jobs.
  • Efficient: Workers are reused for multiple jobs, reducing the overhead of thread creation.
  • Safe: Jobs are Send and 'static, ensuring they can safely be sent across threads.
  • Traceable: Enable the trace flag to print the states of the workers.

License

This project is licensed under the MIT License.