Last active
October 2, 2024 10:23
-
-
Save vikage/80678df1a61a36925662633c18ad3eeb 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 caller() async { | |
let version = await getSwiftVersion() | |
await printSwiftVersion(number: version) | |
} | |
func getSwiftVersion() async -> Int { | |
print("Getting swift version") | |
return 7 | |
} | |
func printSwiftVersion(number: Int) async { | |
print("Version: \(number)") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment