Last active
October 30, 2018 09:59
-
-
Save LeonardoCardoso/e9f8e646e06d99300d84 to your computer and use it in GitHub Desktop.
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
class func executeAfter(delay: TimeInterval, block: @escaping () -> Void){ | |
DispatchQueue.main.asyncAfter(deadline: DispatchTime.now() + delay, execute: block) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment