Hello,
I have a simple HttpJob posting queries via Http and receiving some Json data.
This is a little example
My question is:
If a query (n+1) come after a query (n), and query (n) is still executing will be aborted or will be 2 "JobDone" Calls?
I would like only to have the last query returned. So, if query (n) is already running and query (n+1) is asked via http, (n) should be aborted (I'm not interested anymore) and i'll need to wait only for (n+1)...... and so for (n+2).....
Thank you
Massimiliano
I have a simple HttpJob posting queries via Http and receiving some Json data.
This is a little example
B4X:
Sub GetData(MyURL As String, MyPOST As String)
Dim job As HttpJob
job.Initialize("Job", Me)
job.PostString(MyURL, MyPOST)
End Sub
Sub JobDone(Job As HttpJob)
'Some Operations
End Sub
My question is:
If a query (n+1) come after a query (n), and query (n) is still executing will be aborted or will be 2 "JobDone" Calls?
I would like only to have the last query returned. So, if query (n) is already running and query (n+1) is asked via http, (n) should be aborted (I'm not interested anymore) and i'll need to wait only for (n+1)...... and so for (n+2).....
Thank you
Massimiliano