mirror of
https://github.com/tauri-apps/tauri.git
synced 2026-02-06 11:41:56 +00:00
* Introduce `run_return` * Fix compile error * Clone web_context * Refactor to Result API * Fix clippy * Impl mock runtime * Make it desktop-only * Add changelog entry * Fix compile error * Make it semver compatible * Extend changelog entry * Undo semver-hack * Reduce diff * Remove unnecessary mut * Make it take `self` by value * Reduce diff * Undo diff hack * Make everything cfg(desktop) * Rename vars to reduce diff * Fix clippy * Extract make_event_handler * Reduce diff * Deprecate `App::run_return` * Update changelog * Fix compile errors * Accept reference * Create event handler first * Update example * Update manifest * Fix example * Fix example docs * Call `setup` only upon Ready * Update changelog entry * Update docs * Update changelog * Add platform-specific note * update docs * run_return on mobile * Apply suggestions from code review * remove change file --------- Co-authored-by: Lucas Nogueira <lucas@tauri.app>
544 B
544 B
| tauri | tauri-runtime | tauri-runtime-wry |
|---|---|---|
| minor:feat | minor:feat | minor:feat |
Add App::run_return function. Contrary to App::run, this will not exit the process but instead return the requested exit-code. This allows the host app to perform further cleanup after Tauri has exited. App::run_return is not available on iOS and fallbacks to the regular App::run functionality.
The App::run_iteration function is deprecated as part of this because calling it in a loop - as suggested by the name - will cause a busy-loop.