def _sequential_for(sequence, produce, retire):
    """Simple single-threaded for loop"""
    for idx, var in enumerate(sequence):
        deferred = produce(var)
        deferred.compute()
        retire(deferred, idx)
