safina-threadpool

crates.io version license: Apache 2.0 unsafe forbidden pipeline status

A threadpool.

You can use it alone or with safina, a safe async runtime.

Features

Limitations

Documentation

https://docs.rs/safina-threadpool

Examples

rust let pool = safina_threadpool::ThreadPool::new("worker", 2).unwrap(); let receiver = { let (sender, receiver) = std::sync::mpsc::channel(); for data in data_source { let sender_clone = sender.clone(); pool.schedule( move || process_data(data, sender_clone)); } receiver }; let results: Vec<ProcessResult> = receiver.iter().collect(); // ...

Alternatives

Changelog

TO DO

Release Process

  1. Edit Cargo.toml and bump version number.
  2. Run ./release.sh

License: Apache-2.0