class Async::Pool::Controller
def wait_for_resource
def wait_for_resource # If we fail to create a resource (below), we will end up waiting for one to become resources. until resource = available_resource @notification.wait end # Be careful not to context switch or fail here. return resource end