35 references to CancellationToken
System.Private.CoreLib (35)
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Task.cs (31)
473
/// <param name="cancellationToken">The <see cref="
CancellationToken
"/> that will be assigned to the new task.</param>
511
/// <param name="cancellationToken">The <see cref="
CancellationToken
"/> that will be assigned to the new task.</param>
549
/// <param name="cancellationToken">The <see cref="
CancellationToken
"/> that will be assigned to the new task.</param>
1375
/// A <see cref="Task">Task</see> will complete in Canceled state either if its <see cref="
CancellationToken
">CancellationToken</see>
2739
/// A <see cref="
CancellationToken
"/> to observe while waiting for the task to complete.
2772
/// A <see cref="
CancellationToken
"/> to observe while waiting for the task to complete.
2816
/// A <see cref="
CancellationToken
"/> to observe while waiting for the task to complete.
2870
/// <summary>Gets a <see cref="Task"/> that will complete when this <see cref="Task"/> completes or when the specified <see cref="
CancellationToken
"/> has cancellation requested.</summary>
2871
/// <param name="cancellationToken">The <see cref="
CancellationToken
"/> to monitor for a cancellation request.</param>
2891
/// <summary>Gets a <see cref="Task"/> that will complete when this <see cref="Task"/> completes, when the specified timeout expires, or when the specified <see cref="
CancellationToken
"/> has cancellation requested.</summary>
2893
/// <param name="cancellationToken">The <see cref="
CancellationToken
"/> to monitor for a cancellation request.</param>
2898
/// <summary>Gets a <see cref="Task"/> that will complete when this <see cref="Task"/> completes, when the specified timeout expires, or when the specified <see cref="
CancellationToken
"/> has cancellation requested.</summary>
2901
/// <param name="cancellationToken">The <see cref="
CancellationToken
"/> to monitor for a cancellation request.</param>
3001
TaskStatus.Canceled => TrySetCanceled(completingTask.
CancellationToken
, completingTask.GetCancellationExceptionDispatchInfo()),
3737
/// <param name="cancellationToken"> The <see cref="
CancellationToken
"/> that will be assigned to the new continuation task.</param>
3826
/// <param name="cancellationToken">The <see cref="
CancellationToken
"/> that will be assigned to the new continuation task.</param>
3916
/// <param name="cancellationToken"> The <see cref="
CancellationToken
"/> that will be assigned to the new continuation task.</param>
4008
/// <param name="cancellationToken">The <see cref="
CancellationToken
"/> that will be assigned to the new continuation task.</param>
4104
/// <param name="cancellationToken">The <see cref="
CancellationToken
"/> that will be assigned to the new continuation task.</param>
4198
/// <param name="cancellationToken">The <see cref="
CancellationToken
"/> that will be assigned to the new continuation task.</param>
4305
/// <param name="cancellationToken">The <see cref="
CancellationToken
"/> that will be assigned to the new continuation task.</param>
4402
/// <param name="cancellationToken">The <see cref="
CancellationToken
"/> that will be assigned to the new continuation task.</param>
4913
/// A <see cref="
CancellationToken
"/> to observe while waiting for the tasks to complete.
4955
/// A <see cref="
CancellationToken
"/> to observe while waiting for the tasks to complete.
4988
/// <param name="cancellationToken">A <see cref="
CancellationToken
"/> to observe while waiting for the tasks to complete.</param>
5297
/// A <see cref="
CancellationToken
"/> to observe while waiting for a task to complete.
5358
/// A <see cref="
CancellationToken
"/> to observe while waiting for a task to complete.
6275
TrySetCanceled(canceledTask.
CancellationToken
, canceledTask.GetCancellationExceptionDispatchInfo());
6547
TrySetCanceled(canceledTask.
CancellationToken
, canceledTask.GetCancellationExceptionDispatchInfo());
7235
public bool CancellationPending => (m_task.Status == TaskStatus.WaitingToRun) && m_task.
CancellationToken
.IsCancellationRequested;
7593
result = TrySetCanceled(task.
CancellationToken
, task.GetCancellationExceptionDispatchInfo());
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Task_T.cs (1)
1429
public bool CancellationPending => (m_task.Status == TaskStatus.WaitingToRun) && m_task.
CancellationToken
.IsCancellationRequested;
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\TaskCanceledException.cs (1)
73
base(SR.TaskCanceledException_ctor_DefaultMessage, task != null ? task.
CancellationToken
: CancellationToken.None)
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\TaskCompletionSource.cs (1)
339
result = _task.TrySetCanceled(completedTask.
CancellationToken
, completedTask.GetCancellationExceptionDispatchInfo());
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\TaskCompletionSource_T.cs (1)
341
result = _task.TrySetCanceled(completedTask.
CancellationToken
, completedTask.GetCancellationExceptionDispatchInfo());