This function below doesn’t work like i want it to; Being a js novice i can’t figure out why. I need it to wait 5 seconds before checking whether the newstate is -1.

Recommended for you

To add to this answer: Executing the command (su ) in the background and immediately wait ing for it can be useful when using set -e and writing conditions whose code should still have set …

You may also like