What's The Plan For Settimeout() And Setinterval() ?

Discussion in 'Buildbox 3.0' started by DanFarfan, Oct 25, 2018.

  1. DanFarfan

    DanFarfan Avid Boxer

    Joined:
    Sep 22, 2018
    Messages:
    101
    Likes Received:
    42
    setTimeout() and setInterval() are 2 standard Javascript functions.
    Without going into too much detail, they are the entryway to Javascript's wildly useful multi-threaded operation.
    As of today, setInterval() generates an error: "not a function."
    This line of code
    let _tmr = setTimeout( log("inside Timeout?"),1000 );
    does set _tmr equal to some value. (i.e. it's not null).
    However, instead of waiting 1 second before printing to the log, setTimeout seems to ignore the millisecond time value completely and just prints to the log without delay.

    Has anyone experimented with either of these two functions (in BB3, of course) and gotten different results?
    (I will forward to support also and report back any answer I get).

    It's important to know whether proper support for these 2 functions is coming or not.
    If they aren't coming because they conflict with internal BB3 operation, then I'll write an alternative. If they are coming, I might wait.

    @DanFarfan
     
    bahador likes this.
  2. DanFarfan

    DanFarfan Avid Boxer

    Joined:
    Sep 22, 2018
    Messages:
    101
    Likes Received:
    42
    Update: I got a quick response from support (I must have closed the browser tab by accident).

    sweet.
     
  3. particles

    particles Avid Boxer

    Joined:
    Aug 31, 2018
    Messages:
    337
    Likes Received:
    242
  4. Mancha

    Mancha Boxer

    Joined:
    Sep 16, 2018
    Messages:
    13
    Likes Received:
    2
    What was the response, will this be included in the API?
     
  5. LBPToo

    LBPToo Avid Boxer

    Joined:
    Nov 1, 2016
    Messages:
    233
    Likes Received:
    141

Share This Page