sleep function aware of interrupts, useful func to check if it is time to stop and small fix-adjustment
sleep function aware of interrupts, useful func to check if it is time to stop and small fix-adjustment

rshmelev/go-inthandler