Action.stop is now async
This commit is contained in:
parent
304fcc341f
commit
47386086d7
|
@ -60,5 +60,5 @@ protocol Action {
|
||||||
func run(with context: ActionContext, didUpdate: @escaping (ActionProgress) async -> Void) async throws -> ActionContext
|
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.
|
// 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
|
||||||
}
|
}
|
||||||
|
|
|
@ -28,7 +28,5 @@ extension ChecksBeforeSyncAction: Action {
|
||||||
return context
|
return context
|
||||||
}
|
}
|
||||||
|
|
||||||
func stop() {
|
func stop() async { }
|
||||||
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -19,7 +19,5 @@ extension ClearAlreadyScannedBlocksAction: Action {
|
||||||
return context
|
return context
|
||||||
}
|
}
|
||||||
|
|
||||||
func stop() {
|
func stop() async { }
|
||||||
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -18,7 +18,5 @@ extension ClearCacheAction: Action {
|
||||||
return context
|
return context
|
||||||
}
|
}
|
||||||
|
|
||||||
func stop() {
|
func stop() async { }
|
||||||
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,7 +20,5 @@ extension ComputeSyncRangesAction: Action {
|
||||||
return context
|
return context
|
||||||
}
|
}
|
||||||
|
|
||||||
func stop() {
|
func stop() async { }
|
||||||
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -31,7 +31,5 @@ extension DownloadAction: Action {
|
||||||
return context
|
return context
|
||||||
}
|
}
|
||||||
|
|
||||||
func stop() {
|
func stop() async { }
|
||||||
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -25,7 +25,5 @@ extension EnhanceAction: Action {
|
||||||
return context
|
return context
|
||||||
}
|
}
|
||||||
|
|
||||||
func stop() {
|
func stop() async { }
|
||||||
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -19,7 +19,5 @@ extension FetchUTXOsAction: Action {
|
||||||
return context
|
return context
|
||||||
}
|
}
|
||||||
|
|
||||||
func stop() {
|
func stop() async { }
|
||||||
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,7 +20,5 @@ extension SaplingParamsAction: Action {
|
||||||
return context
|
return context
|
||||||
}
|
}
|
||||||
|
|
||||||
func stop() {
|
func stop() async { }
|
||||||
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -19,8 +19,6 @@ extension ScanAction: Action {
|
||||||
return context
|
return context
|
||||||
}
|
}
|
||||||
|
|
||||||
func stop() {
|
func stop() async { }
|
||||||
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -29,7 +29,5 @@ extension ScanDownloadedButUnscannedAction: Action {
|
||||||
return context
|
return context
|
||||||
}
|
}
|
||||||
|
|
||||||
func stop() {
|
func stop() async { }
|
||||||
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,7 +20,5 @@ extension ValidateAction: Action {
|
||||||
return context
|
return context
|
||||||
}
|
}
|
||||||
|
|
||||||
func stop() {
|
func stop() async { }
|
||||||
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -42,7 +42,5 @@ extension ValidateServerAction: Action {
|
||||||
return context
|
return context
|
||||||
}
|
}
|
||||||
|
|
||||||
func stop() {
|
func stop() async { }
|
||||||
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue