bos/pool — pull request #7 by snoyberg (2012-01-07 20:36:15+00:00)
Title: Changes for conduits, and async exception protection

This contains two completely orthogonal changes:

* Expose a (take|destroy|put)Resource API so that we can use resources more naturally with a system like conduits (not need to invert control). Comments explain that `takeResource` should be used with caution.
* Apply `mask` to `withResource` to ensure proper resource destruction in the case of an async exception.