tokio-rs / tokio

A runtime for writing reliable asynchronous applications with Rust. Provides I/O, networking, scheduling, timers, ...
https://tokio.rs
MIT License
27.17k stars 2.49k forks source link

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

Open congzhangzh opened 9 hours ago

congzhangzh commented 9 hours ago

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

https://github.com/webview/webview_deno/issues/185#issuecomment-2501337626 https://docs.libuv.org/en/v1.x/loop.html#c.uv_backend_fd https://www.electronjs.org/blog/electron-internals-node-integration https://github.com/webview/webview/issues/578 https://github.com/webview/webview_deno/issues/185

Darksonn commented 8 hours ago

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