Replies: 1 comment
|
What's the desired syntax (a rough sample is fine)? |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hi,
Is it possible to call and await an async method, and use that result to generate a Result.Success or Result.Failure.
As opposed to using a Maybe.ToResult()
Currently I'm using code like this, but I'm hoping for something cleaner
.Bind(x =>
{
return myAsyncFunc(arg1, rg2).Or(new int[0])
.ToResult("this can never be returned - i think");
})
All reactions