Last active
February 7, 2022 00:58
-
-
Save agiletalk/dba1c3a3613dc973bb3c3161f00932a3 to your computer and use it in GitHub Desktop.
async
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 loadFeed() async throws -> Feed.Entries { | |
try await withCheckedThrowingContinuation { continuation in | |
fetchFeed { result in | |
continuation.resume(with: result) | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment