Remove Context::free_ongoing function

This is now handled better by the Drop from the OngoingGuard returned
by Context::alloc_ongoing.
This commit is contained in:
Floris Bruynooghe
2023-03-30 10:52:47 +02:00
parent 0c5d1832ae
commit 201d05d4fa
4 changed files with 14 additions and 35 deletions

View File

@@ -545,11 +545,6 @@ impl Context {
})
}
pub(crate) async fn free_ongoing(&self) {
let mut s = self.running_state.write().await;
*s = RunningState::Stopped;
}
/// Signal an ongoing process to stop.
pub async fn stop_ongoing(&self) {
let mut s = self.running_state.write().await;