thrdpool 0.1.0

Creates a threadpool to run multiple jobs in parallel
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# ThreadPool
A simple package to run multiple jobs in a threadpool

```rs
    // you can handle 4 connections !!!!!!
    let pool = ThreadPool::new(4);
    for stream in listener.incoming() {
        let stream = stream.unwrap();
        pool.execute(|| {
            handle_connection(stream);
            println!("Connection handled!");
        })
    }
```