Skip to content

Commit

Permalink
Merge pull request #208 from tnantoka/readme-async-after-delay
Browse files Browse the repository at this point in the history
README: Use asyncAfter instead of delay
  • Loading branch information
PGLongo authored Nov 17, 2017
2 parents 492f82b + b979c24 commit 15b2fa2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ You can also hot-swap content views - this can prove useful if you want to displ
HUD.show(.progress)

// Now some long running task starts...
delay(2.0) {
DispatchQueue.main.asyncAfter(deadline: .now() + 2) {
// ...and once it finishes we flash the HUD for a second.
HUD.flash(.success, delay: 1.0)
}
Expand Down

0 comments on commit 15b2fa2

Please sign in to comment.