Skip to content

Commit df3196b

Browse files
authored
Merge pull request #1917 from millenomi/operation-kvc-extra-shims
2 parents 4be63ae + c1adfa3 commit df3196b

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Foundation/Operation.swift

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,16 @@ extension Operation {
186186
finish()
187187
}
188188
}
189+
190+
public func willChangeValue<Value>(for keyPath: KeyPath<Operation, Value>) {
191+
// do nothing
192+
}
193+
194+
public func didChangeValue<Value>(for keyPath: KeyPath<Operation, Value>) {
195+
if keyPath == \Operation.isFinished {
196+
finish()
197+
}
198+
}
189199
}
190200

191201
extension Operation {

0 commit comments

Comments
 (0)