Prev | Index | Next

Waiting for results

def getFoo():
    try:
        x = getResult() # may block
    except ValueError:
        x = "foo"
    return process(x)