https://github.com/ztgx/libpool-rs
A simple threadpool.
https://github.com/ztgx/libpool-rs
Last synced: 3 months ago
JSON representation
A simple threadpool.
- Host: GitHub
- URL: https://github.com/ztgx/libpool-rs
- Owner: zTgx
- License: apache-2.0
- Created: 2019-08-20T08:14:29.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-08-20T09:37:49.000Z (almost 7 years ago)
- Last Synced: 2025-01-13T14:45:08.320Z (over 1 year ago)
- Language: Rust
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE-APACHE
Awesome Lists containing this project
README
# [libpool-rs](https://github.com/zTgx/libpool-rs.git) [](https://travis-ci.org/zTgx/libpool-rs)
This libpool project from [TheRustProgrammingLanguageBook](https://doc.rust-lang.org/stable/book/ch20-03-graceful-shutdown-and-cleanup.html) is for study.
# Usage
Add dependencies
```
[dependencies]
libpool = "0.1.0"
```
```rust
extern crate libpool;
use libpool::*;
fn main() {
ThreadPool::new(5).execute(move ||{
});
}
```