Action.stop is now async

This commit is contained in:
Michal Fousek 2023-05-10 14:09:46 +02:00
parent 304fcc341f
commit 47386086d7
13 changed files with 13 additions and 37 deletions

View File

@ -60,5 +60,5 @@ protocol Action {
func run(with context: ActionContext, didUpdate: @escaping (ActionProgress) async -> Void) async throws -> ActionContext
// Should be called on each existing action when processor wants to stop. Some actions may do it's own background work.
func stop()
func stop() async
}

View File

@ -28,7 +28,5 @@ extension ChecksBeforeSyncAction: Action {
return context
}
func stop() {
}
func stop() async { }
}

View File

@ -19,7 +19,5 @@ extension ClearAlreadyScannedBlocksAction: Action {
return context
}
func stop() {
}
func stop() async { }
}

View File

@ -18,7 +18,5 @@ extension ClearCacheAction: Action {
return context
}
func stop() {
}
func stop() async { }
}

View File

@ -20,7 +20,5 @@ extension ComputeSyncRangesAction: Action {
return context
}
func stop() {
}
func stop() async { }
}

View File

@ -31,7 +31,5 @@ extension DownloadAction: Action {
return context
}
func stop() {
}
func stop() async { }
}

View File

@ -25,7 +25,5 @@ extension EnhanceAction: Action {
return context
}
func stop() {
}
func stop() async { }
}

View File

@ -19,7 +19,5 @@ extension FetchUTXOsAction: Action {
return context
}
func stop() {
}
func stop() async { }
}

View File

@ -20,7 +20,5 @@ extension SaplingParamsAction: Action {
return context
}
func stop() {
}
func stop() async { }
}

View File

@ -19,8 +19,6 @@ extension ScanAction: Action {
return context
}
func stop() {
}
func stop() async { }
}

View File

@ -29,7 +29,5 @@ extension ScanDownloadedButUnscannedAction: Action {
return context
}
func stop() {
}
func stop() async { }
}

View File

@ -20,7 +20,5 @@ extension ValidateAction: Action {
return context
}
func stop() {
}
func stop() async { }
}

View File

@ -42,7 +42,5 @@ extension ValidateServerAction: Action {
return context
}
func stop() {
}
func stop() async { }
}