CallSubDelayed sends a message to the message queue. When the main thread is not busy running other code, it will process the message and execute that sub.
So without Sleep or Wait For, the two code snippets are equivalent.
A call to Sleep will cause the called sub to be executed.
CallSubDelayed sends a message to the message queue. When the main thread is not busy running other code, it will process the message and execute that sub.
So without Sleep or Wait For, the two code snippets are equivalent.
A call to Sleep will cause the called sub to be executed.