mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-12-06 23:00:15 +08:00
The timer scheduler in the app kept its own queue bookkeeping: when a key is due, that a run in flight cannot start a second one, that a key removed mid-run is dropped once it reports back, and that a finished run waits a whole interval. Move that bookkeeping into clash-verge-task as KeyedTimers, so the rules run and are tested without the desktop app. The app keeps the schedule, the logging and the update tasks.
18 lines
333 B
TOML
18 lines
333 B
TOML
[package]
|
|
name = "clash-verge-task"
|
|
version = "0.1.0"
|
|
edition = "2024"
|
|
publish = false
|
|
|
|
[dependencies]
|
|
futures = { workspace = true }
|
|
parking_lot = { workspace = true }
|
|
tokio = { workspace = true }
|
|
tokio-util = { workspace = true }
|
|
|
|
[dev-dependencies]
|
|
tokio = { workspace = true, features = ["test-util"] }
|
|
|
|
[lints]
|
|
workspace = true
|