Dot NET Cancellation Support —API Make Powerful With Cancellation Token
Najeeb Ullah
Software Engineer @ Cube Healthcare Systems (Pvt) Ltd | ?? Full-Stack .NET Architect | ASP.NET Core | Angular 14 | EF Core | Dapper | Scalable API & SQL Optimization Expert
Modern apps can sport long-running operations that do somewhat nasty things to them, especially when a user wants to stop one of those operations. Light ?? to the rescue —with CancellationToken in.NET!
Receiving a command to stop midway through while categorizing one hundred categories as an image. Finally, you can terminate tasks using CancellationToken quickly and efficiently allowing your system to save time and resources by not waiting for the resource exit while terminating the task itself. ??
How it works
Why is this important? ??
Code Example
??? #dotnet #csharp #softwaredevelopment #API #CancellationToken #asynchronousprogramming #developer