mirror of
https://github.com/chatmail/core.git
synced 2026-04-23 00:16:34 +03:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user