block_pool

Crates.ioblock_pool
lib.rsblock_pool
version0.1.2
sourcesrc
created_at2021-12-03 23:36:39.185422
updated_at2021-12-06 04:28:12.036568
descriptionObject pool that blocks when waiting for an object.
homepage
repositoryhttps://github.com/shelbyd/block_pool
max_upload_size
id492016
size3,549
Shelby Doolittle (shelbyd)

documentation

README

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

Commit count: 4

cargo fmt