Make Service.interrupt async

This commit is contained in:
dasha_uwu
2025-08-24 02:30:47 +05:00
parent 3a1649bcaf
commit f51a7b12b5
5 changed files with 8 additions and 8 deletions

View File

@@ -24,7 +24,7 @@ pub(crate) trait Service: Any + Send + Sync {
/// Interrupt the service. This is sent to initiate a graceful shutdown.
/// The service worker should return from its work loop.
fn interrupt(&self) {}
async fn interrupt(&self) {}
/// Clear any caches or similar runtime state.
async fn clear_cache(&self) {}