TaskTupleAwaiter icon indicating copy to clipboard operation
TaskTupleAwaiter copied to clipboard

Support ValueTask

Open wertzui opened this issue 2 years ago • 1 comments

At the moment, only Tasks are supported by the library. However there is also ValueTask which would be a nice addition on their own and also together in Tuples with normal Taskss.

wertzui avatar Oct 26 '23 11:10 wertzui

There's no way to generalize between Task and ValueTask without an exponential explosion of code. I would suggest doing the same as you would already have to do with ValueTasks when you want to use them with Task.WhenAll: use .AsTask() on each ValueTask.

jnm2 avatar Oct 26 '23 13:10 jnm2