yazi/yazi-core/src/manager/commands/suspend.rs
2024-01-02 08:38:26 +08:00

14 lines
274 B
Rust

use yazi_scheduler::Scheduler;
use yazi_shared::event::Exec;
use crate::manager::Manager;
impl Manager {
pub fn suspend(&mut self, _: &Exec) {
#[cfg(unix)]
tokio::spawn(async move {
Scheduler::app_stop().await;
unsafe { libc::raise(libc::SIGTSTP) };
});
}
}