Replies: 2 comments
-
@sharwell, I understand what you're asking for and it can be done. But, what's your motivation for this? Would multiple overloads of |
Beta Was this translation helpful? Give feedback.
-
@paulomorgado it came up during an experiment I'm working on. Right now it's so early that I can't say for sure whether or not I would use this. I have a working prototype, but haven't put it into practice enough to see how it holds up.
This seems lower priority but reasonable. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Currently a task-like type with a non-generic
AsyncMethodBuilder
requires theSetResult
method to not take an argument (the asynchronous equivalent of avoid
method). It would be helpful if the effective return type for such a case was inferred from the argument, if any, accepted by theSetResult
method. For example, suppose you had the following:Beta Was this translation helpful? Give feedback.
All reactions