Create the asynchronous communication channel between the UI and the core app loop. #126

Merged
savanni merged 4 commits from fitnesstrax/async-handlers into main 2023-12-22 20:16:56 +00:00
2 changed files with 1 additions and 2 deletions
Showing only changes of commit dedcc76df0 - Show all commits

View File

@ -7,7 +7,7 @@ edition = "2021"
[dependencies] [dependencies]
adw = { version = "0.5", package = "libadwaita", features = [ "v1_2" ] } adw = { version = "0.5", package = "libadwaita", features = [ "v1_2" ] }
async-channel = "2.1.1" async-channel = { version = "2.1" }
emseries = { path = "../../emseries" } emseries = { path = "../../emseries" }
ft-core = { path = "../core" } ft-core = { path = "../core" }
gio = { version = "0.18" } gio = { version = "0.18" }

View File

@ -457,7 +457,6 @@ fn main() {
let _ = app_tx.send(AppInvocation::RequestRecords).await; let _ = app_tx.send(AppInvocation::RequestRecords).await;
while let Ok(response) = ui_rx.recv().await { while let Ok(response) = ui_rx.recv().await {
println!("response received: {:?}", response);
window.process_response(response); window.process_response(response);
} }
}); });