All are interruptible in a way or Yet another. Not less than considered one of the present answers previously supplies an implementation of pause. Even your suggested implementation of rest infinity is around-advanced as sleep itself is currently interruptible Stack Trade network contains 183 Q&A communities such as Stack Overflow, https://williamd048epz5.iamthewiki.com/user