9 references to TrySetCanceled
mscorlib (9)
system\runtime\compilerservices\AsyncMethodBuilder.cs (1)
663
task.
TrySetCanceled
(oce.CancellationToken, oce) :
system\threading\Tasks\Future.cs (1)
618
return
TrySetCanceled
(tokenToRecord, null);
system\threading\Tasks\FutureFactory.cs (2)
563
promise.
TrySetCanceled
(oce.CancellationToken, oce);
1454
successfullySet =
TrySetCanceled
(oce.CancellationToken, oce);
system\threading\Tasks\Task.cs (5)
5596
bool succeeded = task.
TrySetCanceled
(exception.CancellationToken, exception);
6170
TrySetCanceled
(canceledTask.CancellationToken, canceledTask.GetCancellationExceptionDispatchInfo());
6420
TrySetCanceled
(canceledTask.CancellationToken, canceledTask.GetCancellationExceptionDispatchInfo());
7278
result =
TrySetCanceled
(task.CancellationToken, task.GetCancellationExceptionDispatchInfo());
7289
result =
TrySetCanceled
(oce.CancellationToken, oceEdi);