Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

Microsoft

Understanding How to Use Task and ValueTask

Microsoft via YouTube

Overview

Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
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

Reviews

Start your review of Understanding How to Use Task and ValueTask

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.