Skip to content

implement function to pump message loop once#1308

Open
Complexicon wants to merge 5 commits intowebview:masterfrom
Complexicon:master
Open

implement function to pump message loop once#1308
Complexicon wants to merge 5 commits intowebview:masterfrom
Complexicon:master

Conversation

@Complexicon
Copy link

hi, i needed this functionality for using the webview library with node/deno/bun - basically all single threaded event loop driven runtimes. i thought i'll create a pr for this in the hope that it will get upstreamed
this will fix:

webview/webview_deno#194
webview/webview_deno#185

tr1ckydev/webview-bun#31
tr1ckydev/webview-bun#10

and probably some more

@Complexicon
Copy link
Author

TODO: macos implementation

@Complexicon Complexicon marked this pull request as ready for review June 11, 2025 13:02
exoRift added a commit to exoRift/webview-bun that referenced this pull request Jun 19, 2025
@exoRift
Copy link

exoRift commented Jul 25, 2025

Your implementation seems to return continueRun = 1 if multiple window instances are opened at once

Relevant issue comment: tr1ckydev/webview-bun#36 (comment)

Edit:

Fixed in this commit of my own fork: exoRift@2f742aa

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

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants