Why do you have to poll the HTTPClient?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Judd Gledhill
:warning: Old Version Published before Godot 3 was released.

Hi,

I am looking at using the HTTPClient in my project. Why do I have to poll it? Is there no way to provide a call back function for it to execute on completion?

Where is a good place to poll it - I see alot of examples using while loops, but I thought the engine would block the thread we are using to render with a while loop - is that not the case?

I am so used to JS that some of the workings of the engine are a little mysterious to me. Thanks for the help in understanding.