YoVDO

Understanding How to Use Task and ValueTask

Offered By: Microsoft via YouTube

Tags

.NET Courses Memory Management Courses Asynchronous Programming Courses

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

Introduction to Functional Programming
Delft University of Technology via edX
MongoDB for .NET Developers
MongoDB University
基于.Net的Web开发技术
Xi'an Jiaotong University via Coursera
Web Development with ASP.NET C# and Entity Framework Code-First
Canvas Network
Blazor and JavaScript Interoperability
Coursera Project Network via Coursera