Created
November 30, 2016 20:28
-
-
Save BrettBukowski/1325bc24ae163106c472d4c1c636d9c3 to your computer and use it in GitHub Desktop.
async delay - swift 3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let delayInSeconds = 2.0 | |
DispatchQueue.main.asyncAfter(deadline: DispatchTime.now() + delayInSeconds) { | |
// Code | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment