Contents
Display Legacy Contents

 Print
    Wait For Threads  
 This action will wait until all background threads stop running.


     
If you are executing an action set in thread mode and you want to exit the form, it’s recommended to wait until the action set finishes before exiting the form, or you can cause the application to crash.
In this case you can use the Wait For Threads to make sure no thread is running before closing the form.
It is also valid for Timers in Thread Mode. When you call StopTimer, if the timer is running when this is called, the timer is stopped, but the event continues executing. You can use this action to wait for timers that haven't finished executing.


See also
Samples

 
 
Updated: 10/10/2019 4:41 PM