Hello everybody.
Is it possible to use "resumable subs" using a variable?
That is, blocking a function waiting for a variable to change state (in another function). Something like :
In other projects I have used "Lock" type variables from an external library ("threading") but I am looking for something more standard.
Thanks for all!
Is it possible to use "resumable subs" using a variable?
That is, blocking a function waiting for a variable to change state (in another function). Something like :
B4X:
mysemaphore = false
'Wait'
waitfor(mysemaphore = true)
'continue'
In other projects I have used "Lock" type variables from an external library ("threading") but I am looking for something more standard.
Thanks for all!