I use B4J Console (non-UI) project:
I'm try the example from the documentation "B4X Language" about "Waiting for a resumable sub to complete":
The expected result was Log:
from Prb 1
after Prb 1
from Prb 2
after Prb 2
But real is:
from Prb 1
after Prb 1
Wait For not work with risen event.
I'm try the example from the documentation "B4X Language" about "Waiting for a resumable sub to complete":
B4X:
Sub Process_Globals
End Sub
Sub AppStart (Args() As String)
Prb
Log("after Prb 1")
Wait For Prb_Complete
Log("after Prb 2")
End Sub
Sub Prb
Log("from Prb 1")
Sleep(1000)
Log("from Prb 2")
CallSubDelayed(Me, "Prb_Complete")
End Sub
The expected result was Log:
from Prb 1
after Prb 1
from Prb 2
after Prb 2
But real is:
from Prb 1
after Prb 1
Wait For not work with risen event.