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

uv_backend_fd like support to make integration to OS gui event loop possible! #6994

Open
congzhangzh opened this issue Nov 27, 2024 · 3 comments
Assignees
Labels
A-tokio Area: The main tokio crate C-feature-request Category: A feature request. T-wasm Topic: Web Assembly

Comments

@congzhangzh
Copy link

I want to make webview_deno support async binding, which under the hood need pool tokio event in separate thread, and trigger on UI thread!

Is your feature request related to a problem? Please describe.
no

Describe the solution you'd like
A backend fd mechanism

Describe alternatives you've considered
no

Additional context
No

webview/webview_deno#185 (comment)
https://docs.libuv.org/en/v1.x/loop.html#c.uv_backend_fd
https://www.electronjs.org/blog/electron-internals-node-integration
webview/webview#578
webview/webview_deno#185

@congzhangzh congzhangzh added A-tokio Area: The main tokio crate C-feature-request Category: A feature request. labels Nov 27, 2024
@Darksonn Darksonn added the T-wasm Topic: Web Assembly label Nov 27, 2024
@Darksonn
Copy link
Contributor

It's unclear exactly what you're asking for, but it sounds like a duplicate of #6178.

@congzhangzh
Copy link
Author

congzhangzh commented Nov 30, 2024

Hi folks, I want do something like integrate event loop with OS gui event loop, and electron already find a way to do it, which need pool event loop in backend thread and post and run on ui thread.

refs:

https://docs.libuv.org/en/v1.x/loop.html#c.uv_backend_fd
https://docs.libuv.org/en/v1.x/loop.html#c.uv_run_mode
https://github.com/electron/electron/blob/8f00cc9c0e78b95e4de14b9b9e1a7df20935e948/shell/common/node_bindings.cc#L929
https://gist.github.com/bagder/ffb613e3c3c5f41813b31fc09ef1c261
https://docs.libuv.org/en/stable/guide/eventloops.html

tks:)

@Noah-Kennedy
Copy link
Contributor

I'm working on a patchset right now which will expose functionality which I believe will resolve this.

@Noah-Kennedy Noah-Kennedy self-assigned this Dec 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-tokio Area: The main tokio crate C-feature-request Category: A feature request. T-wasm Topic: Web Assembly
Projects
None yet
Development

No branches or pull requests

3 participants