class Async::Pool::Controller

def available_resource

@returns [Object] An existing resource in a "used" state.
def available_resource
	resource = nil
	
	@guard.acquire do
		resource = get_resource
	end
	
	return resource
rescue Exception
	reuse(resource) if resource
	raise
end