{"id":55898,"date":"2010-07-02T09:00:00","date_gmt":"2010-07-02T09:00:00","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/pfxteam\/2010\/07\/02\/using-cancellation-support-in-net-framework-4\/"},"modified":"2010-07-02T09:00:00","modified_gmt":"2010-07-02T09:00:00","slug":"using-cancellation-support-in-net-framework-4","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/dotnet\/using-cancellation-support-in-net-framework-4\/","title":{"rendered":"Using Cancellation Support in .NET Framework 4"},"content":{"rendered":"<p>The .NET Framework 4 introduces a new mechanism for cancellation of operations, based on new&nbsp;types&nbsp;CancellationToken and CancellationTokenSource. This cancellation mechanism is used across the parallel programming libraries: tasks, concurrent collections, and PLINQ queries.<\/p>\n<p><a href=\"https:\/\/services.social.microsoft.com\/feeds\/FeedItem?feedId=639a99a9-ff25-4062-b61d-a86ea9d66a06&amp;itemId=c801bd7e-4131-4ec9-99f2-696885923155&amp;title=Using+Cancellation+Support+in+.NET+Framework+4&amp;uri=http%3a%2f%2fdownload.microsoft.com%2fdownload%2fB%2fC%2fF%2fBCFD4868-1354-45E3-B71B-B851CD78733D%2fUsingCancellationinNET4.pdf&amp;k=X0G0DpUsed0C4LiYMcDbgvhUp68yK8JCcfiuS4vjD40%3d\">Using Cancellation Support in .NET Framework 4<\/a>, written by Mike Liddell, is an in-depth exploration of CancellationToken and CancellationTokenSource, how to make use of the cancellation support, and what are the common usage patterns that arise in practice.<\/p>\n<p>(This paper and many more are available through the Parallel Computing Developer Center on MSDN at <a href=\"http:\/\/msdn.microsoft.com\/en-us\/concurrency\/ee851578.aspx\">http:\/\/msdn.microsoft.com\/en-us\/concurrency\/ee851578.aspx<\/a>.)<\/p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>The .NET Framework 4 introduces a new mechanism for cancellation of operations, based on new&nbsp;types&nbsp;CancellationToken and CancellationTokenSource. This cancellation mechanism is used across the parallel programming libraries: tasks, concurrent collections, and PLINQ queries. Using Cancellation Support in .NET Framework 4, written by Mike Liddell, is an in-depth exploration of CancellationToken and CancellationTokenSource, how to make [&hellip;]<\/p>\n","protected":false},"author":481,"featured_media":58792,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[7908],"tags":[7907,7922,7915,7916,7909],"class_list":["post-55898","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-pfxteam","tag-net-4","tag-article-summary","tag-cancellation","tag-coordination-data-structures","tag-parallel-extensions"],"acf":[],"blog_post_summary":"<p>The .NET Framework 4 introduces a new mechanism for cancellation of operations, based on new&nbsp;types&nbsp;CancellationToken and CancellationTokenSource. This cancellation mechanism is used across the parallel programming libraries: tasks, concurrent collections, and PLINQ queries. Using Cancellation Support in .NET Framework 4, written by Mike Liddell, is an in-depth exploration of CancellationToken and CancellationTokenSource, how to make [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/posts\/55898","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/users\/481"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/comments?post=55898"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/posts\/55898\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/media\/58792"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/media?parent=55898"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/categories?post=55898"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/tags?post=55898"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}