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:
+1
-1
@@ -91,7 +91,7 @@ impl Widget {
|
||||
.map(|x| x.unwrap())
|
||||
.collect(),
|
||||
)),
|
||||
Widget::Clock { font_size } => Some(widgets::clock::Clock::new(font_size, tx.clone())),
|
||||
Widget::Clock { font_size } => Some(widgets::clock::Clock::new(font_size)),
|
||||
Widget::Date { font_size } => Some(widgets::date::Date::new(font_size)),
|
||||
Widget::Calendar {
|
||||
font_size,
|
||||
|
||||
Reference in New Issue
Block a user