eta_obj_pool 1.0.0

Thread safe object pool
Documentation
  • Coverage
  • 0%
    0 out of 21 items documented0 out of 14 items with examples
  • Size
  • Source code size: 15.33 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.74 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 10s Average build duration of successful builds.
  • all releases: 11s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • erik9631

ETA POOL

A simple thread safe object pool implementation in Rust.

Usage

use eta_obj_pool::pool::FixedPool;

let pool = FixedPool::new(vec![1, 2, 3, 4, 5, 6, 7, 8, 9, 10]).unwrap(); /// Or any vector of elements

for _ in 0..10 {
    let element = pool.acquire().unwrap();
    println!("{}", element.get());
}

The objects acquired from the proxies are automatically returned to the pool when they are dropped.