Last active
November 26, 2020 12:33
-
-
Save Regenhardt/b84046504b19db36b2b530a0763b612c to your computer and use it in GitHub Desktop.
This file contains hidden or 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
namespace regenhardt | |
{ | |
public static class TaskExtensions | |
{ | |
public static async Task<T> Data<T>(this Task<Result<T>> result) | |
{ | |
return (await result).Data; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment