mirror of
https://github.com/AU-COVIDSafe/mobile-ios.git
synced 2025-01-19 01:06:35 +00:00
18 lines
315 B
Swift
18 lines
315 B
Swift
// Copyright © 2020 Australian Government All rights reserved.
|
|
|
|
import Foundation
|
|
|
|
class Action: Operation {
|
|
override func main() {
|
|
if isCancelled {
|
|
return
|
|
}
|
|
autoreleasepool {
|
|
self.run()
|
|
}
|
|
}
|
|
|
|
func run() {
|
|
preconditionFailure("This abstract method must be overridden.")
|
|
}
|
|
}
|