Understanding how to use Task and ValueTask

Understanding how to use Task and ValueTask

In this video, 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?

Thanks for reading

If you liked this post, share it with all of your programming buddies!

Follow us on Facebook | Twitter

Further reading about .Net

Supporting Windows Forms and WPF in .NET Core 3

Top 5 DevOps Automation Tools for .NET Developers

Moving from Node.js to .NET Core

How to Port Desktop Applications to .NET Core 3.0

Build amazing web apps with ASP.NET Core 3.0




web-development dotnet asp-net

Bootstrap 5 Complete Course with Examples

Bootstrap 5 Tutorial - Bootstrap 5 Crash Course for Beginners

Nest.JS Tutorial for Beginners

Hello Vue 3: A First Look at Vue 3 and the Composition API

Building a simple Applications with Vue 3

Deno Crash Course: Explore Deno and Create a full REST API with Deno

How to Build a Real-time Chat App with Deno and WebSockets

Convert HTML to Markdown Online

HTML entity encoder decoder Online

Hire ASP.Net Developers

Looking to outsource your asp dot net development requirement? ASP.Net is a special feature of the DOT Net framework created by Microsoft. At [HourlyDeveloper.io](https://hourlydeveloper.io/ "HourlyDeveloper.io"), we have a team of experienced...

Blazor for ASP.NET Web Forms Developers PDF

In this blog post, I will share the Free e-book: Blazor for ASP.NET Web Forms Developers PDF. This book is great for ASP.NET Web Forms developers looking for guidelines. As well as strategies for migrating their existing apps to a modern, open-source, and cross-platform web framework.

8 Reasons Why PHP and .NET Rule the World of Web Development

Building a website is the first step in the path of a successful business. For web development, PHP and .Net are the foremost languages. If any company wants to succeed in the market, it needs to strengthen its digital presence. Though social media provides a place to gain some attention, it is impossible to create a brand without an official web page. This is why businesses hire firms offering web development services to get their website designed, which would enable them to get as much traction as possible.

Free e-book: Blazor for ASP.NET Web Forms Developers

Releasing new e-book: Blazor for ASP.NET Web Forms Developers. It covers guidelines and strategies for migrating existing apps to a modern web framework.

Hire Web Developer

Looking for an attractive & user-friendly web developer? HourlyDeveloper.io, a leading web, and mobile app development company, offers web developers for hire through flexible engagement models. You can **[Hire Web...