Custom AsyncMethodBuilder does not work for custom types that take 2 or more parameters #2273
Unanswered
vsfeedback
asked this question in
Language Ideas
Replies: 2 comments
-
Tagging @cston for triage |
Beta Was this translation helpful? Give feedback.
0 replies
-
Take a look at #3403 for more on this topic |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Using a custom AsyncMethodBuilder with a typeof(ResultAsyncMethodBuilder<,>) over a class Result<T1, T2> gives CS1983 when used in a project:
public static async Result<int, Exception> Add(Result<int, Exception> first, Result<int, Exception> second) {
var a = await first;
....
}
It would be nice to be be capable of using this for Result types, instead of just Option types
This issue has been moved from https://developercommunity.visualstudio.com/content/idea/465356/custom-asyncmethodbuilder-does-not-work-for-custom.html
VSTS ticketId: 797932
These are the original issue comments:
Jane Wu [MSFT] on 2/22/2019, 02:52 AM (10 hours ago):
Thank you for taking the time to provide your suggestion. We will do some preliminary checks to make sure we can proceed further. We'll provide an update once the issue has been triaged by the product team.
Beta Was this translation helpful? Give feedback.
All reactions