widget: Add wait support

Widgets can now specify that they wish to wait on an fd or for a target
time to be reached.

This can be used to save a few worker threads.
This commit is contained in:
Kenny Levinsen
2019-10-05 01:07:06 +02:00
parent 510ad34183
commit 0de3da162b
10 changed files with 104 additions and 33 deletions
+1
View File
@@ -33,6 +33,7 @@ lazy_static = "1.4"
rcalc_lib = { version = "0.9" }
rust-ini = "0.13"
shlex = "0.1"
timerfd = "1.0.0"
serde = { version = "1.0", features = ["derive"] }
serde_json = { version = "1.0", optional = true }