messaging_thread_pool 5.0.3

A library for aiding the creation of typed thread pool of objects that is communicated with via channels
Documentation
use crate::{ThreadPool, pool_item::PoolItem};

impl<P> Drop for ThreadPool<P>
where
    P: PoolItem,
{
    /// implement drop to shutdown all of the thread pools threads
    fn drop(&mut self) {
        self.shutdown();
    }
}

#[cfg(test)]
mod tests {
    use crate::{ThreadPool, samples::*};

    #[test]
    fn one_thread_drop_clean_shutdown_as_expected() {
        let target = ThreadPool::<Randoms>::new(1);

        drop(target);
    }
}