Resolved delayUntil() boolean returns?

Discussion in 'Developer Support' started by NZL, May 18, 2016.

  1. Execution.delayUntil(() -> countA > countB, 3000, 5000);

    What are the signals this outputs?
    countA > countB - Immediately returns true?
    wait 3000-5000 returns false? or true?

    For example
    count cooked food every loop, if currentcooked > countedcooked while waiting for 3-5seconds, return true
    so that I know I am still cooking
  2. Best Answer:
    Post #2 by SlashnHax, May 18, 2016
  3. It returns true if the callable returns true within the specified time period, else it times out and returns false.

    There's an overload that takes a second callable, while resets the timer
    #2 SlashnHax, May 18, 2016
    Last edited: May 18, 2016
    NZL likes this.

Share This Page