mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41:05 +00:00
14 lines
274 B
Rust
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) };
|
|
});
|
|
}
|
|
}
|