yazi/core/src/blocker.rs
2023-08-15 18:49:47 +08:00

6 lines
170 B
Rust

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