I don't know whether it makes a difference, but this could also probably set `*stop`. (Maybe it does for concurrent enumeration, where it might find multiple indexes and needs to get the lowest one.)