You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: xml/System.Threading.Tasks/Task.xml
+9-9Lines changed: 9 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -3447,8 +3447,8 @@ Task t Status: RanToCompletion, Result: 42
3447
3447
</Parameters>
3448
3448
<Docs>
3449
3449
<paramname="action">The work to execute asynchronously</param>
3450
-
<paramname="cancellationToken">A cancellation token that can be used to cancel the work</param>
3451
-
<summary>Queues the specified work to run on the thread pool and returns a <seecref="T:System.Threading.Tasks.Task" /> object that represents that work. A cancellation token allows the work to be cancelled.</summary>
3450
+
<paramname="cancellationToken">A cancellation token that can be used to cancel the work if it has not yet started. <seecref="M:System.Threading.Tasks.Task.Run(System.Action,System.Threading.CancellationToken)" /> does not pass <paramrefname="cancellationToken" /> to <paramrefname="action" />.</param>
3451
+
<summary>Queues the specified work to run on the thread pool and returns a <seecref="T:System.Threading.Tasks.Task" /> object that represents that work. A cancellation token allows the work to be cancelled if it has not yet started.</summary>
3452
3452
<returns>A task that represents the work queued to execute in the thread pool.</returns>
3453
3453
<remarks>
3454
3454
<formattype="text/markdown"><![CDATA[
@@ -3520,8 +3520,8 @@ Task t Status: RanToCompletion, Result: 42
3520
3520
</Parameters>
3521
3521
<Docs>
3522
3522
<paramname="function">The work to execute asynchronously.</param>
3523
-
<paramname="cancellationToken">A cancellation token that should be used to cancel the work.</param>
3524
-
<summary>Queues the specified work to run on the thread pool and returns a proxy for the task returned by <paramrefname="function" />.</summary>
3523
+
<paramname="cancellationToken">A cancellation token that can be used to cancel the work if it has not yet started. <seecref="M:System.Threading.Tasks.Task.Run(System.Func{System.Threading.Tasks.Task},System.Threading.CancellationToken)" /> does not pass <paramrefname="cancellationToken" /> to <paramrefname="action" />.</param>
3524
+
<summary>Queues the specified work to run on the thread pool and returns a proxy for the task returned by <paramrefname="function" />. A cancellation token allows the work to be cancelled if it has not yet started.</summary>
3525
3525
<returns>A task that represents a proxy for the task returned by <paramrefname="function" />.</returns>
3526
3526
<remarks>
3527
3527
<formattype="text/markdown"><![CDATA[
@@ -3581,7 +3581,7 @@ Task t Status: RanToCompletion, Result: 42
3581
3581
<Docs>
3582
3582
<typeparamname="TResult">The type of the result returned by the proxy task.</typeparam>
3583
3583
<paramname="function">The work to execute asynchronously</param>
3584
-
<summary>Queues the specified work to run on the thread pool and returns a proxy for the <seelangword="Task(TResult)" /> returned by <paramrefname="function" />.</summary>
3584
+
<summary>Queues the specified work to run on the thread pool and returns a proxy for the <seelangword="Task(TResult)" /> returned by <paramrefname="function" />. A cancellation token allows the work to be cancelled if it has not yet started.</summary>
3585
3585
<returns>A <seelangword="Task(TResult)" /> that represents a proxy for the <seelangword="Task(TResult)" /> returned by <paramrefname="function" />.</returns>
3586
3586
<remarks>
3587
3587
<formattype="text/markdown"><![CDATA[
@@ -3637,7 +3637,7 @@ Task t Status: RanToCompletion, Result: 42
3637
3637
<Docs>
3638
3638
<typeparamname="TResult">The return type of the task.</typeparam>
3639
3639
<paramname="function">The work to execute asynchronously.</param>
3640
-
<summary>Queues the specified work to run on the thread pool and returns a <seecref="T:System.Threading.Tasks.Task`1" /> object that represents that work.</summary>
3640
+
<summary>Queues the specified work to run on the thread pool and returns a <seecref="T:System.Threading.Tasks.Task`1" /> object that represents that work. A cancellation token allows the work to be cancelled if it has not yet started.</summary>
3641
3641
<returns>A task object that represents the work queued to execute in the thread pool.</returns>
3642
3642
<remarks>
3643
3643
<formattype="text/markdown"><![CDATA[
@@ -3713,7 +3713,7 @@ Task t Status: RanToCompletion, Result: 42
3713
3713
<Docs>
3714
3714
<typeparamname="TResult">The type of the result returned by the proxy task.</typeparam>
3715
3715
<paramname="function">The work to execute asynchronously</param>
3716
-
<paramname="cancellationToken">A cancellation token that should be used to cancel the work</param>
3716
+
<paramname="cancellationToken">A cancellation token that can be used to cancel the work if it has not yet started. <seecref="M:System.Threading.Tasks.Task.Run``1(System.Func{System.Threading.Tasks.Task{``0}},System.Threading.CancellationToken)" /> does not pass <paramrefname="cancellationToken" /> to <paramrefname="action" />.</param>
3717
3717
<summary>Queues the specified work to run on the thread pool and returns a proxy for the <seelangword="Task(TResult)" /> returned by <paramrefname="function" />.</summary>
3718
3718
<returns>A <seelangword="Task(TResult)" /> that represents a proxy for the <seelangword="Task(TResult)" /> returned by <paramrefname="function" />.</returns>
3719
3719
<remarks>
@@ -3774,8 +3774,8 @@ Task t Status: RanToCompletion, Result: 42
3774
3774
<Docs>
3775
3775
<typeparamname="TResult">The result type of the task.</typeparam>
3776
3776
<paramname="function">The work to execute asynchronously</param>
3777
-
<paramname="cancellationToken">A cancellation token that should be used to cancel the work</param>
3778
-
<summary>Queues the specified work to run on the thread pool and returns a <seelangword="Task(TResult)" /> object that represents that work. A cancellation token allows the work to be cancelled.</summary>
3777
+
<paramname="cancellationToken">A cancellation token that can be used to cancel the work if it has not yet started. <seecref="M:System.Threading.Tasks.Task.Run``1(System.Func{``0},System.Threading.CancellationToken)" /> does not pass <paramrefname="cancellationToken" /> to <paramrefname="action" />.</param>
3778
+
<summary>Queues the specified work to run on the thread pool and returns a <seelangword="Task(TResult)" /> object that represents that work.</summary>
3779
3779
<returns>A <seelangword="Task(TResult)" /> that represents the work queued to execute in the thread pool.</returns>
0 commit comments