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

resetState: true does not reset performCount #498

Open
sebastianhelbig opened this issue Nov 8, 2022 · 0 comments
Open

resetState: true does not reset performCount #498

sebastianhelbig opened this issue Nov 8, 2022 · 0 comments

Comments

@sebastianhelbig
Copy link

According to the docs it should, but it does not. This also seems untested.

cancelAll()
options.resetState
If true, will clear the task state (last* and performCount properties will be set to initial values). Defaults to false.

console.log(myTask.performCount); --> 2
await myTask.cancelAll({ resetState: true });
console.log(myTask.performCount); --> 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant