Hello, my question is that, if there is any limit when using "wait for" nested between different "sub".
Thank you.
Fictitious example:
B4X:
sub aaa
bbb( x )
wait for bbb_completed
end sub
sub bbb( x as int )
ccc( y)
wait for ccc_completed
callsubdelayed(me,"bbb_completed")
end sub
sub ccc( y as string )
do something
ddd( z )
wait for ddd_completed
callsubdelayed(me,"ccc_completed")
end sub
sub ddd( z as boolean )
do something
callsubdelayed(me,"ddd_completed")
end sub
Hello, thank you.
And for cases where a "Sub" returns at different points of another "Sub", what should be used?
Example:
B4X:
sub aaa
wait for (bbb("hello") complete (result as object)
continue doing something
end sub
sub bbb( zzz as string )
some code
return null
'
other code
return null
'
some other code
return null
'
And finally
return null
end sub
Sorry, I was just trying to confirm what I understood by watching the video tutorial.
It's just that my knowledge of English is not enough to understand the narration you do, I could only follow the video.
Thank you.