Merge pull request #1511 from kielgillard/feedly-operation-fixup
Indicate FeedlyOperation is asychronous.
This commit is contained in:
commit
a5a3d9309b
|
@ -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?
|
||||||
}
|
}
|
||||||
|
|
|
@ -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.")
|
||||||
|
|
Loading…
Reference in New Issue