Understanding How to Use Task and ValueTask
Offered By: Microsoft via YouTube
Course Description
Overview
Dive into a 27-minute video from Microsoft exploring the intricacies of Task and ValueTask in .NET. Learn about the purpose and benefits of ValueTask, ideal scenarios for its use, and the introduction of IValueTask. Discover why non-generic ValueTask was created, its cancellation capabilities, and the differences between Task and ValueTask. Explore the adoption rate of ValueTask, its integration with IAsyncEnumerable, and ongoing performance improvements related to allocations. Gain insights from Stephen Toub's discussion with Rich on optimizing asynchronous .NET code to reduce allocations and memory usage.
Syllabus
] - What is ValueTask and why do we need it?.
] - What is a good scenario for ValueTask?.
] - What is IValueTask?.
] - Why was the non-generic ValueTask introduced?.
] - Does ValueTask offer cancellation?.
] - What can you do with Task vs ValueTask?.
] - What’s the uptake with ValueTask usage?.
] - How does IAsyncEnumerable task advantage of ValueTask?.
] - What other performance work is happening around allocations?.
Taught by
Microsoft Developer
Tags
Related Courses
JavaScript PromisesGoogle via Udacity Grand Central Dispatch (GCD)
Udacity Asynchronous Programming in C# and .NET Core
Microsoft via edX JavaScript, часть 2: прототипы и асинхронность
Moscow Institute of Physics and Technology via Coursera Разработка веб-сервисов на Go - основы языка
Moscow Institute of Physics and Technology via Coursera