class Async::Pool::Controller

def acquire

Acquire a resource from the pool. If a block is provided, the resource will be released after the block has been executed.
def acquire
	resource = wait_for_resource
	
	return resource unless block_given?
	
	begin
		yield resource
	ensure
		release(resource)
	end
end