-
-
Notifications
You must be signed in to change notification settings - Fork 24
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
fix: gather sources does not cancelled on refresh #132
Conversation
Implement a signal reason as Error object.
Added a cancel() method to GatherState, instead of providing signal to constructor.
Enabled cancellation of gather sources by locking only the UI during refresh, not the entire refresh process.
I will test it. |
Yes, it is contained in this PR. |
OK. |
Thanks. Merged. |
I have found the bug. If I |
this.#aborter.abort({ reason: "quit" }); | ||
const reason = new QuitAbortReason(); | ||
this.#aborter.abort(reason); | ||
/* no await */ this.#cancelGatherStates([], reason); |
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.
This is broken.
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.
It must not be canceled. Because if it is canceled, resume feature does not work.
Enabled cancellation of gather sources by locking only the UI during refresh, not the entire refresh process.
This PR includes 3 cumulative commits. If necessary, these can be separated into individual PRs.