Function tauri::api::process::kill_children
source · pub fn kill_children()
Available on crate feature
process-command-api
only.Expand description
Kills all child processes created with Command
.
By default it’s called before the crate::App
exits.
Examples found in repository?
src/app.rs (line 499)
496 497 498 499 500 501 502 503 504 505 506 507
fn cleanup_before_exit(&self) {
#[cfg(any(shell_execute, shell_sidecar))]
{
crate::api::process::kill_children();
}
#[cfg(all(windows, feature = "system-tray"))]
{
for tray in self.manager().trays().values() {
let _ = tray.destroy();
}
}
}