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

Fix LT-21934: fork task to stop parser so control returns to user #209

Open
wants to merge 2 commits into
base: release/9.1
Choose a base branch
from

Conversation

jtmaxwell3
Copy link
Collaborator

@jtmaxwell3 jtmaxwell3 commented Nov 18, 2024

This is about https://jira.sil.org/browse/LT-21934.

Michael Lee asked that StopParser could return immediately so the user can get back to work while the parser still times out gracefully in the background. I added a condition that thread.Stop() wouldn't be called while the parser was updating wordforms since thread.Stop() turns into an abort after 60 seconds, and that can leave things in a funny state.

Jason wanted to review this code.


This change is Reviewable

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

Successfully merging this pull request may close these issues.

1 participant