Add a way to fetch actual state of queue. The running method does not provide you with the state of the actual processing happens and simply indicates if the pool has not been paused or killed
Add a way to fetch actual state of queue. The running method does not provide you with the state of the actual processing happens and simply indicates if the pool has not been paused or killed

This commit introduces 2 methods that exposes relevant part of the internal queue datastructue without making it public using attr_<methods>. the are namely  a) Backlog b) Busy? both these can be used for cleaner shutdown mechanisms (the channle close causes unclen shutdowns as threads are really still active), and making decisions for dynamic scaling workers using queue "backpressure"

pressrelations/bunny,jafrog/bunny,jafrog/bunny,gferguson-gd/bunny,pressrelations/bunny,gferguson-gd/bunny