Skip to content

Commit

Permalink
Merge remote-tracking branch 'refs/remotes/origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniels committed Jan 20, 2020
2 parents 58089a7 + 390f9c7 commit cc84513
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,10 +126,10 @@ let tasks = sessionManager.multiDownload(URLStrings)
```swift
let task = sessionManager.download("http://dldir1.qq.com/qqfile/QQforMac/QQ_V4.2.4.dmg")

task?.progress(onMainQueue: true, { (task) in
task?.progress(onMainQueue: true) { (task) in
let progress = task.progress.fractionCompleted
print("下载中, 进度:\(progress)")
}).success { (task) in
}.success { (task) in
print("下载完成")
}.failure { (task) in
print("下载失败")
Expand Down

0 comments on commit cc84513

Please sign in to comment.