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
1
2
3
4
5
6
7
use crate::ID_BEING_PROCESSED;

/// This function can be used externally to access the id of the pool item that is currently
/// being processed
pub fn id_being_processed() -> Option<u64> {
    ID_BEING_PROCESSED.with(|id_being_processed| *id_being_processed.borrow())
}