B4R Question priority of process workflow

Tayfur

Well-Known Member
Licensed User
Longtime User
I have a questions;

I have a sub. And it s processing time is very long, for example 5 second.
And Same app has a timer and interval=1000(1second.)

I have a code like under below...
what is result on run time?

do "timertick" wait "long proceess time"? (wait 5 second)
or broken code
Or broken "longprocesstime" sub and start "timerrick"
or... ??


B4X:
Private Sub AppStart
    Serial1.Initialize(115200)
    Log("AppStart")
    sss=1
    Timers.Initialize("T_tick",1000)
    Timers.Enabled=True
    Log("AppStart")
    LongProcessTime
End Sub


Sub LongProcessTime
'-----Long times procvess steps...
'--- it need 5 second
End sub
 
Top