webview-bun
webview-bun copied to clipboard
Run without blocking main or run inside of worker
Currently webview.run() blocks the main thread, which limits your ability to run any kind of backend code, like a web server. Additionally, this currently doesn't work in a Worker script, although there is potentially a solution to this implemented here: https://github.com/primatejs/worker-bin
If it was possible to either run without block main or in a Worker, it'd make this much more useful for developing full on applications. I'm currently experimenting with using alternative methods for running the webview outside of the main thread, like node's worker_threads. I'll report back if I get anything working.
(Thanks for the great work on this! I'm extremely excited to use this in applications.)