yazi-proxy 0.2.4

Yazi event proxy
Documentation
1
2
3
4
5
6
7
8
9
10
11
use tokio::sync::Semaphore;
use yazi_shared::RoCell;

pub static HIDER: RoCell<Semaphore> = RoCell::new();

pub static WATCHER: RoCell<Semaphore> = RoCell::new();

pub(super) fn init_semaphore() {
	HIDER.init(Semaphore::new(1));
	WATCHER.init(Semaphore::new(1));
}