mirror of
https://github.com/sxyazi/yazi.git
synced 2026-05-13 08:16:40 +00:00
refactor: async Command over emitting shell actions (#3706)
This commit is contained in:
parent
e49cdfe220
commit
d84f0b1265
20 changed files with 137 additions and 136 deletions
|
|
@ -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 }
|
||||
|
|
|
|||
|
|
@ -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)); }
|
||||
|
|
|
|||
4
yazi-term/src/semaphore.rs
Normal file
4
yazi-term/src/semaphore.rs
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
use tokio::sync::Semaphore;
|
||||
use yazi_shared::RoCell;
|
||||
|
||||
pub static YIELD_TO_SUBPROCESS: RoCell<Semaphore> = RoCell::new();
|
||||
Loading…
Add table
Add a link
Reference in a new issue