[bug] Calls to custom schemes freeze the application #3421
Labels
status: upstream
This issue is blocked by upstream dependencies and we need to wait or contribute upstream fixes
type: breaking change
This issue or pull request will introduce a breaking change and requires major version bump
type: bug
Describe the bug
When fetching data via custom schemes with slightly longer running logic handling the requests the application freezes for the duration of the request. This behaviour seems to be more extreme when having multiple requests to custom schemes at once.
I observed this behaviour with custom schemes being used in image elements but I'd imagine that this is a general problem.
Reproduction
Expected behavior
Calls to custom schemes should not freeze the application.
If this is unavoidable with synchronous handlers, at least having an option for using asynchronous calls would be nice.
Platform and versions
Stack trace
No response
Additional context
I've reproduced this behaviour with a minimal tauri app. My real use case is calling custom schemes that then use an asynchronous runtime to block on asynchronous callbacks.
The text was updated successfully, but these errors were encountered: