so you want to pass control back to the loop from within the select()
method? That’s not directly possible, because the method isn’t aware of
its context. What you could do is let the method return a specific
“stop value” (e. g. nil) and then do a “next” inside the loop body to
jump to the next iteration:
next if select([$stdin], nil, nil, 1.5).nil?
But I’m not really sure what your code looks like and what you want.