Chilkat Forum

Technologies => REST / HTTP / HTTPS => Topic started by: fureka on February 06, 2018, 09:43:14 AM

Title: ChilkatHttp and ChilkatTask
Post by: fureka on February 06, 2018, 09:43:14 AM
Hello,

I want to eliminate the Do....Loop cycle until waiting an answer for a httpRequest.  It is possible to use ChilkatTask (ActiveX) object combined with ChilkatHttp instead of the waiting cycle?

Thanks

Fureka
Title: Re: ChilkatHttp and ChilkatTask
Post by: Chilkat on February 07, 2018, 11:33:47 AM
You would never actually use the Do...Loop in your program.  Calling a method asynchronously and then doing a Do...Loop to wait for the task to complete is just an over-complicated way to duplicate a synchronous call.

The Do...Loop exists so that one can see how the results of the task are obtained after it's completed.

In actuality, you would start the task, and then some other part of your application might check on the task to see if it's finished.