refactor: async Command over emitting shell actions (#3706)

This commit is contained in:
三咲雅 misaki masa 2026-02-22 10:31:15 +08:00 committed by GitHub
parent e49cdfe220
commit d84f0b1265
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
20 changed files with 137 additions and 136 deletions

View file

@ -23,6 +23,7 @@ yazi-tty = { path = "../yazi-tty", version = "26.2.2" }
anyhow = { workspace = true }
crossterm = { workspace = true }
ratatui = { workspace = true }
tokio = { workspace = true }
[target."cfg(unix)".dependencies]
libc = { workspace = true }

View file

@ -1 +1,3 @@
yazi_macro::mod_flat!(option state term);
yazi_macro::mod_flat!(option semaphore state term);
pub fn init() { YIELD_TO_SUBPROCESS.init(tokio::sync::Semaphore::new(1)); }

View file

@ -0,0 +1,4 @@
use tokio::sync::Semaphore;
use yazi_shared::RoCell;
pub static YIELD_TO_SUBPROCESS: RoCell<Semaphore> = RoCell::new();