pub trait Timer: Send + Sync {
// Required methods
fn new_timeout(
&self,
task: Arc<dyn TimerTask>,
delay: Duration,
) -> Arc<dyn Timeout>;
fn stop(&self) -> HashSet<Arc<dyn Timeout>>;
}
Expand description
convert from netty Timer A trait representing a timer that can schedule and manage timed tasks.