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
Task queue is not extrictly FIFO, as this code demonstrate.
const promise1 = new Promise((resolve, reject) => { setTimeout(resolve, 3000, 'one'); }); const promise2 = new Promise((resolve, reject) => { setTimeout(resolve, 0, 'two'); }); Promise.race([promise1, promise2]).then(function race(value) { console.log(value); // Both resolve, but promise2 is faster }); // expected output: "two"
The text was updated successfully, but these errors were encountered:
yes it is
Sorry, something went wrong.
No branches or pull requests
Task queue is not extrictly FIFO, as this code demonstrate.
The text was updated successfully, but these errors were encountered: