Implement tryTakeResource, tryWithResource
Merge pull request #11 from kim/master

Non-blocking versions of 'withResource', 'takeResource'