async ValueTask gives performance improvement
Instead of using Task, might be good that add a value in what we call by calling ValueTask. It's suppose to be faster. Hopefully i can get some numbers out here.
Essentially to call it, just simply use the followings :-
async ValueTask TestValueTask(int d)
{
await Task.Delay(d);
return 10;
}
Comments