Skip to content

Instantly share code, notes, and snippets.

@ayoub-9
Created December 13, 2018 16:38
Show Gist options
  • Select an option

  • Save ayoub-9/5d87298ca80ec657dbcf554685659e04 to your computer and use it in GitHub Desktop.

Select an option

Save ayoub-9/5d87298ca80ec657dbcf554685659e04 to your computer and use it in GitHub Desktop.
DispatchQueue.main.asyncAfter(deadline: .now() + 2) { exit(0);
}
@ayoub-9
Copy link
Author

ayoub-9 commented Dec 13, 2018

DispatchQueue.main.asyncAfter(deadline: .now() + 2) {
//here any code
exit(0);
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment