pub fn new(manager: M, max_size: usize) -> Self {
        debug_assert!(max_size >= 1);
        Self {
            inner: Arc::new(Inner {
                manager,
                resources: ArrayQueue::new(max_size),
                semaphore: Semaphore::new(max_size),
            }),
        }
    }
/// Creates a new `Pool` with the given size.
Creates a new `Pool` with the given size.
Creates a new ` Pool ` with the given size .
pub fn new(manager: M, max_size: usize) -> Self {
        debug_assert!(max_size >= 1);
        Self {
            inner: Arc::new(Inner {
                manager,
                resources: ArrayQueue::new(max_size),
                semaphore: Semaphore::new(max_size),
            }),
        }
    }
pub fn new ( manager : M , max_size : usize ) -> Self { debug_assert ! ( max_size 1 ) ; Self { inner : Arc :: new ( Inner { manager , resources : ArrayQueue :: new ( max_size ) , semaphore : Semaphore :: new ( max_size ) , } ) , } }
Creates a new `Pool` with the given size.
Creates a new ` Pool ` with the given size .
manager
M
max_size
usize