sb.timerSetTimeout

sb.timerSetTimeout(function, timeout)

This function creates a one-shot timer that fires after "timeout" milliseconds and then executes "function"

Parameters:
    function         The function to be called when the timer fires
    timeout          The time in milliseconds before the timer should fire

Returns:
    An id for the timer
Example:

var idval;
function cbFunc() {    
    print("CB FUNC HAS BEEN CALLED");
}
    
// Call cbFunc after 1 second
function cbSetTimeout() {    
    idval = sb.timerSetTimeout(cbFunc, 1000);
}
Was this article helpful?
0 out of 0 found this helpful