Created
November 17, 2017 09:42
-
-
Save chriswill0w/5f01edcacec5a82a7b15311e2df05261 to your computer and use it in GitHub Desktop.
dispatch async after
This file contains 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
// to run something in 0.1 seconds | |
DispatchQueue.main.asyncAfter(deadline: .now() + 0.1) { | |
// your code here | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment