Make initiate_key_transfer() non-blocking

This commit is contained in:
link2xt
2022-08-14 21:13:06 +00:00
parent 56cd875fbd
commit c75bc66560
4 changed files with 14 additions and 37 deletions

View File

@@ -346,6 +346,7 @@ impl Context {
}
}
#[allow(unused)]
pub(crate) async fn shall_stop_ongoing(&self) -> bool {
match &*self.running_state.read().await {
RunningState::Running { .. } => false,