[]
= "0.1.0"
Pools :
Simple example
use PoolMutex;
use Arc;
let pool = new;
let val = pool.create_with;
drop;
// return to the pool
[dependencies]
easy-pool = "0.1.0"
Pools :
use easy_pool::PoolMutex;
use std::sync::Arc;
let pool = Arc::new(PoolMutex::<Vec<u8>>::new());
let val = pool.create_with(|| Vec::with_capacity(1024));
drop(val);
// return to the pool