Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support ValueTask #26

Open
wertzui opened this issue Oct 26, 2023 · 1 comment
Open

Support ValueTask #26

wertzui opened this issue Oct 26, 2023 · 1 comment

Comments

@wertzui
Copy link

wertzui commented Oct 26, 2023

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.

@jnm2
Copy link
Collaborator

jnm2 commented Oct 26, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants