3 releases
0.1.2 | Dec 6, 2021 |
---|---|
0.1.1 | Dec 3, 2021 |
0.1.0 | Dec 3, 2021 |
#15 in #waiting
4KB
53 lines
block_pool
A simple object pool that blocks when taking an item out.
use block_pool::Pool;
let pool = Pool::new(vec![1, 2, 3]);
let mut item = pool.take();
*item += 1;
drop(item);
License: MIT
lib.rs
:
A simple object pool that blocks when taking an item out.
use block_pool::Pool;
let pool = Pool::new(vec![1, 2, 3]);
let mut item = pool.take();
*item += 1;
drop(item);