Hi,
my App executes some GET-Requests over the Httputils2 Library. I want my app to continue only after each job is completed.
For example, I start job1 using job1.download("myurl"). The whole programm should then only continue if the jobdone event has been raised successfully, so my app needs to wait for the job to be completed.
I already tried the following:
Before executing the request, a variable called "httpstatus" is set to false. At the end of the JobDone Event it is set to true. By using a Do-While Loop the programm should wait until the "httpstatus" variable turns true, but that ended up in an endless loop.
Thank you for any help
my App executes some GET-Requests over the Httputils2 Library. I want my app to continue only after each job is completed.
For example, I start job1 using job1.download("myurl"). The whole programm should then only continue if the jobdone event has been raised successfully, so my app needs to wait for the job to be completed.
I already tried the following:
Before executing the request, a variable called "httpstatus" is set to false. At the end of the JobDone Event it is set to true. By using a Do-While Loop the programm should wait until the "httpstatus" variable turns true, but that ended up in an endless loop.
Thank you for any help