Use futures_util mutex instead of flume for sending flush lock wakeups

This commit is contained in:
Jonathan Kelley committed 2024-02-02 13:09:26 -08:00
1 parent 38bdab880d
commit 8f70a84c70
14 files changed
+100 -43

No files matched your search

+2 -1
View File
@@ -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() {