Forum Discussion

Travonisoft's avatar
11 years ago

Is AsyncGetToFile truly Async if you have to wait on a port?

I have been developing for roku for several months now and one thing still boggles my mind.

Why name a method AsyncGetToFile if it is truly not Asynchronous? If i have to create a message port and put a wait timer on it for a message to appear then this is not Asynchronous at all. Why didn't the developers at roku think that it would be a good idea to allow image loading straight to an object and then it would appear whenever it was loaded? Am I completely lost or does the Roku Development team not know the meaning of the word Asynchronous. I develop for applications with iOS, Android, C#, and Java and never have run into a programming language that is as horrible as brightscript.

If anyone has a truly Asynchronous way to download images, please enlighten me.

12 Replies

  • "Travonisoft" wrote:
    So if this is the case, and I have 30+ images to load would you recommend having a pool of roURLRequestTransfer objects that I create and then alloc use for one for each image needed whenever I need?

    If they all need to be downloaded asynchronously, then you'd either need to create a separate request for each, or create a block of 5-10 that you re-use after the previous transfer completes.
  • "EnTerr" wrote:
    You are right but on a technicality only - one won't run into a language that is exactly Smiley LOL "as horrible" as B/S. You'd find some languages that are less horrible yet many that are more horrible. Looking for exact match in "horribleness" is like comparing float/doubles for == equality. Somewhat more seriously, B/S i pretty decent language, i would's cluster it somewhere with Perl and Tcl. And as subjective opinions go, i'd say Java the Hutt is much more horrible


    I just looked and there doesn't seem to be Wikipedia page for the VS.H.Q*. There's some homework for you EnTerr.



    * Von Schhtupp Horribleness Quotent