The current manual for sleep:Delay a script for specified milliseconds - experimental - maybe even dangerous
The fact it s in there shows it has been considered. Please could we have a little more information so we can decide if the use is dangerous. Eg. if used in a call back …..
As far as I know, it delays all scripted activity everywhere for the allotted time, not just the script the Sleep command is in. I use it in a few scripts, but never for more than a few milliseconds in order to solve certain race conditions that might exist otherwise.