Skip to content
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

Better waitFor on scheduler #4485

Open
dubzzz opened this issue Nov 27, 2023 · 1 comment
Open

Better waitFor on scheduler #4485

dubzzz opened this issue Nov 27, 2023 · 1 comment
Labels
💡 Idea to investigate Non straightforward features that seems great but need to be assessed and designed carefully.

Comments

@dubzzz
Copy link
Owner

dubzzz commented Nov 27, 2023

💡 Idea

Currently the scheduler exposes one recommended but hard to use way to wait for something. At the moment, it requires the user to provide a Promise that will keep the scheduler running until it succeeds.

When writing tests, it can be handful to be able to waitFor a predicate to be fulfilled. A waitFor à-la react-testing might probably be a good target: https://testing-library.com/docs/dom-testing-library/api-async/#waitfor

@dubzzz dubzzz added 💡 Idea 💡 Idea to investigate Non straightforward features that seems great but need to be assessed and designed carefully. labels Nov 27, 2023
@dubzzz
Copy link
Owner Author

dubzzz commented Nov 27, 2023

Might be cool to have it before the next major, see #3891

@dubzzz dubzzz removed the 💡 Idea label Mar 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💡 Idea to investigate Non straightforward features that seems great but need to be assessed and designed carefully.
Projects
None yet
Development

No branches or pull requests

1 participant