lib.rs: added handing for program

This commit is contained in:
2005 2024-10-24 21:20:29 +02:00
parent 844f6214f8
commit 184e50d156

View file

@ -15,7 +15,7 @@ use std::{
str::from_utf8, str::from_utf8,
sync::Arc, sync::Arc,
}; };
use tokio::sync::Mutex; use tokio::{signal, sync::Mutex};
pub mod client; pub mod client;
mod test; mod test;
@ -190,6 +190,7 @@ impl BunBunWorker {
}); });
} }
signal::ctrl_c().await.expect("failed to listen for event");
// TODO hand the program // TODO hand the program
} }
} }