block_pool 0.1.2

Object pool that blocks when waiting for an object.
Documentation
  • Coverage
  • 100%
    5 out of 5 items documented1 out of 5 items with examples
  • Size
  • Source code size: 3.23 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.47 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • shelbyd/block_pool
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • shelbyd

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