Skip to content

Instantly share code, notes, and snippets.

@LeonardoCardoso
Last active October 30, 2018 09:59
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save LeonardoCardoso/e9f8e646e06d99300d84 to your computer and use it in GitHub Desktop.
Save LeonardoCardoso/e9f8e646e06d99300d84 to your computer and use it in GitHub Desktop.
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