Created
December 10, 2021 15:48
-
-
Save alvaroroyo/ccadacb1f59b65112537b7660428a34f to your computer and use it in GitHub Desktop.
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
func getSomethingFromBackground(completion: @escaping (String)->()) { | |
DispatchQueue.global().async { | |
completion("Hello world!") | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment