rahat3062_pool

Crates.iorahat3062_pool
lib.rsrahat3062_pool
version0.1.0
sourcesrc
created_at2024-05-04 15:25:12.991034
updated_at2024-05-04 15:25:12.991034
descriptionA simple, efficient thread pool for Rust.❤️
homepage
repository
max_upload_size
id1229658
size10,608
Rahat Bin Taleb (ToxicalNoob3062)

documentation

https://docs.rs/rahat3062_pool/0.1.0/rahat3062_pool/

README

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.

Commit count: 0

cargo fmt