Merge pull request #1511 from kielgillard/feedly-operation-fixup

Indicate FeedlyOperation is asychronous.
This commit is contained in:
Brent Simmons 2020-01-01 15:19:01 -08:00 committed by GitHub
commit a5a3d9309b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View File

@ -11,5 +11,5 @@ import Foundation
struct FeedlyOrigin: Decodable { struct FeedlyOrigin: Decodable {
var title: String? var title: String?
var streamId: String? var streamId: String?
var htmlUrl: String var htmlUrl: String?
} }

View File

@ -29,6 +29,10 @@ class FeedlyOperation: Operation {
} }
} }
override var isAsynchronous: Bool {
return true
}
func didFinish() { func didFinish() {
assert(Thread.isMainThread) assert(Thread.isMainThread)
assert(!isFinished, "Finished operation is attempting to finish again.") assert(!isFinished, "Finished operation is attempting to finish again.")