The ability to cancel long-running tasks is important to help keep applications responsive. Whether the network connection is slow or disconnects, or the user just wants to cancel a long task, using a [`CancellationToken`][CancellationToken] in .NET makes it easy to cancel those long tasks.
Cancelling in-progress network operations is critical for applications to maintain responsiveness and avoid doing work that isn't needed anymore. There are many situations where you want to cancel on-going work. This article shows you how it is done.
In my position with the Azure SDK team, I'm fortunate to talk to a lot of customers about their needs. Most applications can be categorized into big buckets where we can see the same design patterns repeated. One of those categories is data processing.
Thank you for reading this Azure SDK blog! We hope you learned something new, and we welcome you to share these posts. We're open to Azure SDK blog contributions. To get started, contact us at firstname.lastname@example.org with your idea, and we’ll set you up as a guest blogger.