Skip to content

Instantly share code, notes, and snippets.

@Regenhardt
Last active November 26, 2020 12:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Regenhardt/b84046504b19db36b2b530a0763b612c to your computer and use it in GitHub Desktop.
Save Regenhardt/b84046504b19db36b2b530a0763b612c to your computer and use it in GitHub Desktop.
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