yazi/yazi-core/src/blocker.rs
2023-10-22 16:34:20 +08:00

6 lines
175 B
Rust

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