yazi/yazi-proxy/src/semaphore.rs
2025-08-25 21:40:38 +08:00

6 lines
174 B
Rust

use tokio::sync::Semaphore;
use yazi_shared::RoCell;
pub static HIDER: RoCell<Semaphore> = RoCell::new();
pub(super) fn init_semaphore() { HIDER.init(Semaphore::new(1)); }