Maybe before executing "sleep --interruptable $timeout" an extra check could be done if $timeout is 0 and if true executing the function directly instead of using sleep. Could this be a potential solution?
Maybe before executing "sleep --interruptable $timeout" an extra check could be done if $timeout is 0 and if true executing the function directly instead of using sleep. Could this be a potential solution?