Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- func delay(by timeInterval: TimeInterval, completion: @escaping () -> ()) {
- DispatchQueue.main.asyncAfter(deadline: .now() + timeInterval, execute: {
- completion()
- })
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement