Sleep in small periods, checking the passed abort flag in between to see
if we should break and return.
This is useful when a different signal handler has been set up, as triggering
it won't break sleeps. This way it does, assuming the abort flag is the
same one the signal handler monitors. As such, take it by ref.
Sleep in small periods, checking the passed abort flag in between to see if we should break and return.
This is useful when a different signal handler has been set up, as triggering it won't break sleeps. This way it does, assuming the abort flag is the same one the signal handler monitors. As such, take it by ref.