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