Skip to content

Conversation

@uriyyo
Copy link

@uriyyo uriyyo commented Jan 22, 2026

Refactor asyncio integration to allow run async code in currenly running loop.

I've been working on a library called async-eval and PyCharm plugin built on top of it pycharm-evaluate-async-code . Both libraries have existed for a while and have proved to work for many users (me included). Basically, they patch pydevd code to use exectly same approach as in this PR.

The main idea is to manually trigger _loop_once on currenlty running loop until future won't be done, for non-running eventloop old approach will be used.

Thanks, and let me know what do you think 🙏

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