Hi there,
I find it puzzling to use sleep when I have one sub calling a second sub which calls the third sub.
Like this:
Where to put sleep to prevent blocking the thread?
Thanks
I find it puzzling to use sleep when I have one sub calling a second sub which calls the third sub.
Like this:
B4X:
Sub S1
'update UI
S2
'update UI
End Sub
Sub S2
'do something
S3(param)
End Sub
Sub S3(param as map)
'S3 requires some time to process and will block the thread.
End Sub
Where to put sleep to prevent blocking the thread?
Thanks