'Run one item (a callback or an RPC wait_any) or sleep.
Returns:
True if something happened; False if all queues are empty.'

def run1(self):

    delay = self.run0()
    if (delay is None):
        return False
    if (delay > 0):
        time.sleep(delay)
    return True
