def interruptible_get_result(future):
    while True:
        try:
            return future.result(timeout=1.0)
        except futures.TimeoutError:
            pass
Waits for the result of a future in a way that can be interrupted
dataset/ETHPy150Open Backblaze/B2_Command_Line_Tool/b2/utils.py/interruptible_get_result