-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Add tests for user interruptions #5286
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
let running = 0; | ||
let maxRunning = 0; | ||
|
||
async function run() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed.
v-next/core/test/internal/user-interruptions/user-interruptions-manager.ts
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a minor comment, but LGTM
f1bdb9c
to
1bf656a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Well done on the mutex test.
There are two points I am interested in:
- is there value in testing around
uninterrupted
? - what do we think about tests of the default implementations?
I think we merge this PR and depending on the discussion, follow up on these two points.
|
resolves #5233
resolves #5235
added tests for
UserInterruptionsManagerImplementation
andAsyncMutex