Created
July 21, 2024 19:30
-
-
Save robertmryan/e089d35bec2c7f14e09d7156e114ecd0 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
extension Task { | |
static func bar() { | |
Task<Void, Error> { | |
try await foo() | |
} | |
} | |
} | |
extension Task where Success == Void, Failure == Error { | |
static func baz() { | |
Task { | |
try await foo() | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment