The tooltip for CallSubDelayed states "The sub will be called after the current code execution completes":
Does this mean that this:
is exactly the same as this?:
And if so, is this true even if there are Wait For calls in the sub (which will make the sub Return)?
Does this mean that this:
B4X:
Sub UsingCallSubDelayed
CallSubDelayed(mCallback, mEventName & "_Event2")
.......
Bunch of code that does loads of stuff
.....
End Sub
B4X:
Sub UsingCallSubDelayed2
.......
Bunch of code that does loads of stuff
.....
CallSubDelayed(mCallback, mEventName & "_Event2")
End Sub
And if so, is this true even if there are Wait For calls in the sub (which will make the sub Return)?