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

What’s wrong with webview_dispatcher ? #185

Open
congzhangzh opened this issue Nov 25, 2024 · 7 comments
Open

What’s wrong with webview_dispatcher ? #185

congzhangzh opened this issue Nov 25, 2024 · 7 comments

Comments

@congzhangzh
Copy link
Contributor

Hi Devs,

why disable "webview_dispatch"?

Btw, I am the author of some implementation of webview like julia & python.

https://github.com/congzhangzh/webview_python
https://github.com/congzhangzh/Webview.jl

Tks,
Cong

@eliassjogreen
Copy link
Member

The major issue, which I believe is mentioned elsewhere in some issues in this repo, is that the JavaScript event loop is simply stalled by the webview event loop on the main thread. Even when registering functions as callbacks and calling from another thread wrapped in webview_dispatch deno will simply hang. I have not tried this in a while, and I know the deno FFI has changed a lot since I first implemented it. If you could provide a working proof-of-concept simply using the direct ffi.ts bindings using webview_dispatch from a worker thread that would be great and something which could then further be developed into the actual feature itself.

@congzhangzh
Copy link
Contributor Author

congzhangzh commented Nov 26, 2024

@congzhangzh
Copy link
Contributor Author

webview/webview#578

@DevRubicate
Copy link

I understand that Open Source means no expectations (thanks for your great work so far!) but does this mean that it's effectively impossible to currently use webview_deno in modern Deno? Unless I'm misunderstanding, It looks like webview.run() freezes deno up and makes it impossible to do anything.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants