B4J Question Wait For (job) using http jobs not firing - Solved

virpalacios

Active Member
Licensed User
Longtime User
Hi Everyone, Good Day, this is just a small comment with an issue with B4J, UI App

I wrote a small app consuming two urls.
first I was using only one http job, however I was using a Job_Done Event (not wait for)
everthing went fine, however, after adding a second http job (this time using wait for) , the second call never got after wait for.
It was very frustraing. I did a additional small project with 2 buttons calling urls, both using Wait Job (No event driven rutines), everything went fine, so
I change in my main proyect routines to use Wait For instead of one with Job_Done.
Conclusion, if you want to use more than one http job, use Wait for in All of Them.

Best Regards,

Have a Nice Time

Virgilio
 

EnriqueGonzalez

Well-Known Member
Licensed User
Longtime User
if you want to use more than one http job, use Wait for in All of Them.
Your conclusion is a bit incorrect. You either call all of them as a wait for or call neither.

Before wait for it was pretty standard to call several jobs to a single sub that's why it has a name property that is no longer used
 
Upvote 0

virpalacios

Active Member
Licensed User
Longtime User
Thanks, for the comment, before wait, we put a parámetr in each call so when the Job Done is Fired you can Take actions based is this parámetr. It Was a mistake from my side.
Best Regards
 
Upvote 0
Top