Skip to main content

yazi_proxy/
notify.rs

1use std::time::Duration;
2
3use yazi_core::notify::MessageOpt;
4use yazi_macro::{emit, relay};
5
6pub struct NotifyProxy;
7
8impl NotifyProxy {
9	pub fn push(opt: MessageOpt) {
10		emit!(Call(relay!(notify:push).with_any("opt", opt)));
11	}
12
13	pub fn tick(dur: Duration) {
14		emit!(Call(relay!(notify:tick, [dur.as_secs_f64()])));
15	}
16}