|
86 | 86 | <related type="Article" href="/dotnet/standard/parallel-programming/task-parallel-library-tpl">Task Parallel Library (TPL)</related>
|
87 | 87 | <related type="Article" href="/dotnet/standard/asynchronous-programming-patterns/task-based-asynchronous-pattern-tap">Task-based asynchronous pattern (TAP) in .NET: Introduction and overview</related>
|
88 | 88 | <related type="Article" href="/dotnet/standard/parallel-programming/task-based-asynchronous-programming">Task-based Asynchronous Programming</related>
|
89 |
| - <related type="ExternalDocumentation" href="https://aka.ms/dotnet-parallel-samples">Samples for Parallel Programming with the .NET Core and .NET Standard</related> |
| 89 | + <related type="ExternalDocumentation" href="https://aka.ms/dotnet-parallel-samples">Samples for parallel programming with .NET</related> |
90 | 90 | </Docs>
|
91 | 91 | <Members>
|
92 | 92 | <MemberGroup MemberName=".ctor">
|
@@ -2948,7 +2948,7 @@ Task t Status: RanToCompletion, Result: 42
|
2948 | 2948 | <format type="text/markdown">< in the Parallel Programming with .NET blog. |
| 2951 | + The <xref:System.Threading.Tasks.Task> class implements the <xref:System.IDisposable> interface because internally it uses resources that also implement <xref:System.IDisposable>. However, particularly if your app targets .NET Framework 4.5 or later, there is no need to call <xref:System.Threading.Tasks.Task.Dispose%2A> unless performance or scalability testing indicates that, based on your usage patterns, your app's performance would be improved by disposing of tasks. For more information, see [Do I need to dispose of Tasks?](https://devblogs.microsoft.com/pfxteam/do-i-need-to-dispose-of-tasks/) in the Parallel Programming with .NET blog. |
2952 | 2952 |
|
2953 | 2953 | ]]></format>
|
2954 | 2954 | </remarks>
|
@@ -3000,7 +3000,7 @@ Task t Status: RanToCompletion, Result: 42
|
3000 | 3000 | <format type="text/markdown">< in the Parallel Programming with .NET blog. |
| 3003 | + The <xref:System.Threading.Tasks.Task> class implements the <xref:System.IDisposable> interface because internally it uses resources that also implement <xref:System.IDisposable>. However, particularly if your app targets .NET Framework 4.5 or later, there is no need to call <xref:System.Threading.Tasks.Task.Dispose%2A> unless performance or scalability testing indicates that, based on your usage patterns, your app's performance would be improved by disposing of tasks. For more information, see [Do I need to dispose of Tasks?](https://devblogs.microsoft.com/pfxteam/do-i-need-to-dispose-of-tasks/) in the Parallel Programming with .NET blog. |
3004 | 3004 |
|
3005 | 3005 | ]]></format>
|
3006 | 3006 | </remarks>
|
@@ -3121,7 +3121,7 @@ Task t Status: RanToCompletion, Result: 42
|
3121 | 3121 | The most common use of this property is to create and start a new task in a single call to the <xref:System.Threading.Tasks.TaskFactory.StartNew%2A?displayProperty=nameWithType> method.
|
3122 | 3122 |
|
3123 | 3123 | > [!NOTE]
|
3124 |
| -> Starting with the .NET Framework 4.5, the <xref:System.Threading.Tasks.Task.Run%2A?displayProperty=nameWithType> method provides the easiest way to create a <xref:System.Threading.Tasks.Task> object with default configuration values. |
| 3124 | +> Starting with .NET Framework 4.5, the <xref:System.Threading.Tasks.Task.Run%2A?displayProperty=nameWithType> method provides the easiest way to create a <xref:System.Threading.Tasks.Task> object with default configuration values. |
3125 | 3125 |
|
3126 | 3126 | The following example uses the static <xref:System.Threading.Tasks.Task.Factory%2A> property to make two calls to the <xref:System.Threading.Tasks.TaskFactory.StartNew%2A?displayProperty=nameWithType> method. The first populates an array with the names of files in the user's MyDocuments directory, while the second populates an array with the names of subdirectories of the user's MyDocuments directory. It then calls the <xref:System.Threading.Tasks.TaskFactory.ContinueWhenAll%28System.Threading.Tasks.Task%5B%5D%2CSystem.Action%7BSystem.Threading.Tasks.Task%5B%5D%7D%29?displayProperty=nameWithType> method, which displays information about the number of files and directories in the two arrays after the first two tasks have completed execution.
|
3127 | 3127 |
|
|
0 commit comments