def future_result(future):
    while True:
        try:
            return future.result(0.1)
        except KeyboardInterrupt:
            raise
        except concurrent.futures.TimeoutError:
            continue
def future_result(future):
    while True:
        try:
            return future.result(0.1)
        except KeyboardInterrupt:
            raise
        except concurrent.futures.TimeoutError:
            continue