celluloid/celluloid — pull request #131 by zanker (2012-12-08 01:12:31+00:00)
Title: Added total_busy and total_idle stat calls for the pool manager

Currently, the only way you can determine total idle and busy is to manually keep track of it via callbacks. Which starts to become a bit of a hack to deal with, since then you have to account for crashed workers. Especially when there is an alternative of just getting the length of the `busy` and `idle` arrays.

Perhaps this change isn't of interest, but the examples given on the wiki are of using pools for background workers, where being able to get info on idle/busy is very useful. Due to the use of `method_missing` by the pool manager, the only way to get access to these stats in is by a method added to the class itself.