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

[feature request] add loop._run_once and loop._set_is_runnning api to easy the process of OS gui event loop integrate #648

Open
congzhangzh opened this issue Nov 30, 2024 · 1 comment

Comments

@congzhangzh
Copy link

  • uvloop version:
    latest

  • Python version:
    3.11.2

  • Platform:
    All, and testing on Linux

  • Can you reproduce the bug with PYTHONASYNCIODEBUG in env?:
    n.a

  • Does uvloop behave differently from vanilla asyncio? How?:
    no

  • Purpose:
    Add a public API to

  1. setting running state
  2. allow run_once of event loop
  • Background:

I want to pull the event from backend_fd from another process and process them on os GUI event loop which like electron, but uvloop has no public API to run_once and keep _is_running

  • Refs:
  1. https://discuss.python.org/t/connecting-asyncio-and-tkinter-event-loops/14722/9
  2. [feature request] add async function bind support congzhangzh/webview_python#1
@congzhangzh
Copy link
Author

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

No branches or pull requests

1 participant