def wait(self, timeout): while not queue.full(): queue.put(1) return queue.put(2, timeout=timeout)
def wait(self, timeout): while not queue.full(): queue.put(1) return queue.put(2, timeout=timeout)
def wait(self, timeout): while not queue.full(): queue.put(1) return queue.put(2, timeout=timeout)
def wait(self, timeout): while not queue.full(): queue.put(1) return queue.put(2, timeout=timeout)