We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a6e77b4 + aa0c559 commit d99eb66Copy full SHA for d99eb66
Foundation/Progress.swift
@@ -292,8 +292,8 @@ open class Progress : NSObject {
292
open var pausingHandler: (() -> Void)? {
293
didSet {
294
guard let handler = pausingHandler else { return }
295
- // If we're already cancelled, then invoke it - asynchronously
296
- if isCancelled {
+ // If we're already paused, then invoke it - asynchronously
+ if isPaused {
297
DispatchQueue.global().async {
298
handler()
299
}
0 commit comments