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 doACoolAsyncThing() async -> Bool { | |
let result = await withCheckedContinuation { continuation in | |
SomeAPI.oldSchoolContinuationHandler { result in | |
continuation.returning(result) | |
} | |
} | |
guard result else { return false } | |
return await isThe50000thDigitOfPi9() | |
} |