mirror of
https://github.com/CrazyJasonwell/clash-verge-rev.git
synced 2026-10-21 18:48:42 +08:00
refactor: wip
This commit is contained in:
1 parent
01dfe83fcd
commit
401e6b5a57
15 files changed
+1799
-804
No files matched your search
@@ -0,0 +1,20 @@
|
||||
use delay_timer::prelude::{DelayTimer, DelayTimerBuilder, Task, TaskBuilder};
|
||||
use std::collections::HashMap;
|
||||
|
||||
pub struct Timer {
|
||||
delay_timer: DelayTimer,
|
||||
|
||||
timer_map: HashMap<String, u64>,
|
||||
|
||||
timer_count: u64,
|
||||
}
|
||||
|
||||
impl Timer {
|
||||
pub fn new() -> Self {
|
||||
Timer {
|
||||
delay_timer: DelayTimerBuilder::default().build(),
|
||||
timer_map: HashMap::new(),
|
||||
timer_count: 1,
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user