Skip to content

Sequencr.waitUntil and extra positional for Sequencr.chain #1

@ThaBluNate

Description

@ThaBluNate

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions