-
Notifications
You must be signed in to change notification settings - Fork 192
Fix potential race condition in the EPUB navigator #704
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
Conversation
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.
Pull request overview
This pull request addresses a potential race condition in the EPUB navigator by adding proper task lifecycle management for the spread loading process. The fix ensures that async tasks can be cancelled when the spread view is being cleaned up.
Changes:
- Added a
spreadLoadTaskproperty to track the async task created when spread loading completes - Updated
clear()method to stop web view loading and cancel any pending spread load task - Modified
spreadDidLoad(_ body: Any)to store the task reference for later cancellation
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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.
Pull request overview
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
No description provided.