-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
New issue
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
[Best practices] setImmediate/ setTimeout is a good way to fix async work within IT case ? #11514
Comments
yeh, |
I don't get how can you pass in setImmediate as executor for a Promise?
Also setImmediate is removed from a global in jsdom in jest 27, so you would want to import setImmediate from "timers" |
yeh.... What's i want to say is set a timer to wait for microtasks have been done . |
ref: #2157 |
This issue is stale because it has been open for 1 year with no activity. Remove stale label or comment or this will be closed in 30 days. |
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions. |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
💬 Questions and Help
It's ok to use setTimeout or setImmediate to wait some async work done ?
here is a example
we met many many scenarios like this.
like: show alert after save done
Looking forward to answers , thank you .
The text was updated successfully, but these errors were encountered: