yazi/yazi-scheduler/src/blocker.rs
2023-11-29 01:37:06 +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)) }