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

Heterogeneous Parallel Programming
University of Illinois at Urbana-Champaign via Coursera
Advanced Operating Systems
Georgia Institute of Technology via Udacity
計算機程式設計 (Computer Programming)
National Taiwan University via Coursera
Introduction to Operating Systems
Georgia Institute of Technology via Udacity
Android Performance
Google via Udacity