Understanding how to use Task and ValueTask
Microsoft Developer Microsoft Developer
530K subscribers
26,098 views
0

 Published On Jul 2, 2019

Understanding the Whys, what’s, and when’s of ValueTask
https://devblogs.microsoft.com/dotnet...

ValueTask reference docs
https://docs.microsoft.com/en-us/dotn...

NuGet package for ValueTask
https://www.nuget.org/packages/System...

In this episode, Stephen Toub chats with Rich about ValueTask and how it might help reduce allocations and memory usage for your asynchronous .NET code.

[00:34] - What is ValueTask and why do we need it?
[05:22] - What is a good scenario for ValueTask?
[10:00] - What is IValueTask?
[12:14] - Why was the non-generic ValueTask introduced?
[13:54] - Does ValueTask offer cancellation?
[14:42] - What can you do with Task vs ValueTask?
[16:28] - What’s the uptake with ValueTask usage?
[18:28] - How does IAsyncEnumerable task advantage of ValueTask?
[21:11] - What other performance work is happening around allocations?

show more

Share/Embed