-
Notifications
You must be signed in to change notification settings - Fork 0
Description
Sequencr.waitUntil
Much like Seqencr.chain
, but waits for input to be true instead of waiting timeout.
Arguments:
callbacks: An array of functions to be called one at a time. Functions may accept one parameter for the return value of the previous function.
conditionals: Anything that returns true
or false
when parsed, such as math equations, comparisons, and functions (including the keywords true
and false
)
Sequencr.waitUntil([foo,bar,baz], x>y)
Positional for Sequencr.chain
Add optional argument to Sequencr.chain, that waits for function to return before starting next function in chain. (Default to false)
Arguments:
callbacks: An array of functions to be called one at a time. Functions may accept one parameter for the return value of the previous function.
timeout: The timeout in ms between each function call. This can be an integer, or a function that returns an integer. (Now non-optional)
true/false: The keywords true
or false
(Optional, default: false) Wait for function to return before starting next function
Sequencr.chain([foo,bar,baz],0,true)