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

yield thread while waiting for native json rpc #4262

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

blahgeek
Copy link
Contributor

@blahgeek blahgeek commented Dec 17, 2023

sit-for may not yield if there's input pending

it seems to fix emacs-lsp/emacs#12

update: previously I tried adding (thread-yield) before sit-for. that seems to fix the issue where the sending thread is starving, but the receive handler from run-with-timer may still be waiting. Now I try to use sleep-for instead of sit-for

sit-for may not yield if there's input pending
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.

Block for a long time on completion
1 participant