Author Topic: ChilkatHttp and ChilkatTask  (Read 580 times)

fureka

  • Newbie
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
ChilkatHttp and ChilkatTask
« 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

Chilkat

  • Administrator
  • Full Member
  • *****
  • Posts: 103
  • Karma: +6/-0
    • View Profile
Re: ChilkatHttp and ChilkatTask
« Reply #1 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.