Using Result type with async/await

I totally agree that there's something missing here and I suggested a solution to this problem here:

With my suggested change, you would be able to write:

guard let products = fechProducts() catch {
    handleFailure(error)
    return
}

Feel free to provide your usage example in the thread, too.

5 Likes