Use futures_util mutex instead of flume for sending flush lock wakeups
This commit is contained in:
14 files changed
+100
-43
No files matched your search
@@ -69,6 +69,7 @@ impl TuiContext {
|
||||
}
|
||||
|
||||
pub fn quit(&self) {
|
||||
// panic!("ack")
|
||||
self.tx.unbounded_send(InputEvent::Close).unwrap();
|
||||
}
|
||||
|
||||
@@ -258,7 +259,7 @@ pub fn render<R: Driver>(
|
||||
TermEvent::Resize(_, _) => updated = true,
|
||||
_ => {}
|
||||
},
|
||||
InputEvent::Close => break,
|
||||
InputEvent::Close => panic!("ackkkk"),
|
||||
};
|
||||
|
||||
if let InputEvent::UserInput(evt) = evt.unwrap() {
|
||||
|
||||
Reference in new issue
Block a user