We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Repetitive tasks execution preventing from anything else to be executed, since there is always a new task to execute in the micro tasks queue.
Such scenario should be prevented.
Loop Code :
let c = 0; function runTask(){ queueMicrotask(() => { try { console.log(c++); runTask(); } catch (e) { //Expected some error here } }); } runTask();
The text was updated successfully, but these errors were encountered:
afaik some browsers already silently do this.
Sorry, something went wrong.
This was discussed when the API was added: #512 (comment)
In reality this really isn't too different from having a script do while (true) {}. The HTML Standard already has provisions against both of these cases in https://html.spec.whatwg.org/multipage/webappapis.html#killing-scripts
while (true) {}
No branches or pull requests
Repetitive tasks execution preventing from anything else to be executed, since there is always a new task to execute in the micro tasks queue.
Such scenario should be prevented.
Loop Code :
The text was updated successfully, but these errors were encountered: