When a question's variables take a long time to be generated, or have an infinite loop, the editor page can't be loaded, so the question can't be edited to fix the problem.
If we moved variable generation to a web worker, it would happen in a different thread and the editor would be usable while generation is happening. We'd also be able to interrupt the worker if it takes too long.
When a question's variables take a long time to be generated, or have an infinite loop, the editor page can't be loaded, so the question can't be edited to fix the problem.
If we moved variable generation to a web worker, it would happen in a different thread and the editor would be usable while generation is happening. We'd also be able to interrupt the worker if it takes too long.