class RorVsWild::Queue
def pull_requests
def pull_requests result = nil mutex.synchronize do if requests.size > 0 result = requests @requests = [] end end result end
def pull_requests result = nil mutex.synchronize do if requests.size > 0 result = requests @requests = [] end end result end