Task vs ValueTask - The what's, when's and how's
Since .NET Core 2.0 the Type ValueTask
. It seems that there is a lot of overlap between Task
and ValueTask
.
So let's have a deeper look into ValueTask
. Where should we use it and how should we use it properly? And also: where we should not use is.