Skip to content

Cancellation/interrupt support for the JavaScript engines? #101

@Xenakios

Description

@Xenakios

I am not sure if it's technically feasible or in the scope of choc to do but would be nice if there was a clean way to be able to stop JS scripts that are taking too long to run. Like if the end user writes a script like :

function generate_steps()
        {
            arr = [];
            for (var i=0;i<900000000;++i)
            {
              if (i % 5 == 0 || i % 11 == 0)
                arr.push(1.0);
              else arr.push(-1.0);
            }
            return arr;
        }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions