Nonblocking Implementation
Are there any plans to make this non-blocking? It's incredibly difficult to do anything not having access to async
not sure what you mean, webview.run is blocking? Your app code is blocking? The issue sounds like you don't understand the event loop so help us understand what you mean. Why can't you () => async { await something(); }?
Because webview-bun currently blocks the event loop. Async functions are never resolved by the scheduler.
You can see my PR here which fixes this issue
https://github.com/tr1ckydev/webview-bun/pull/36
If you want to see this problem in action, use a bound function that does some sort of network call like a database operation