117 references to TaskStatus
mscorlib (105)
system\io\bufferedstream.cs (5)
589
if (semaphoreLockTask.Status ==
TaskStatus
.RanToCompletion) {
654
Contract.Assert(t == null || t.Status ==
TaskStatus
.RanToCompletion);
690
if (semaphoreLockTask.Status ==
TaskStatus
.RanToCompletion) {
1017
if (semaphoreLockTask.Status ==
TaskStatus
.RanToCompletion) {
1101
if (semaphoreLockTask.Status ==
TaskStatus
.RanToCompletion) {
system\io\memorystream.cs (1)
395
Contract.Assert(t == null || t.Status ==
TaskStatus
.RanToCompletion,
system\io\stream.cs (1)
584
Contract.Assert(writeTask.Status ==
TaskStatus
.RanToCompletion);
system\runtime\compilerservices\AsyncMethodBuilder.cs (5)
370
/// <see cref="System.Threading.Tasks.
TaskStatus
">RanToCompletion</see> state.
383
/// <see cref="System.Threading.Tasks.
TaskStatus
">Faulted</see> state with the specified exception.
582
/// <see cref="System.Threading.Tasks.
TaskStatus
">RanToCompletion</see> state with the specified result.
624
Contract.Requires(completedTask.Status ==
TaskStatus
.RanToCompletion, "Expected a successfully completed task");
642
/// <see cref="System.Threading.Tasks.
TaskStatus
">Faulted</see> state with the specified exception.
system\runtime\compilerservices\TaskAwaiter.cs (3)
163
Contract.Requires(task.Status !=
TaskStatus
.RanToCompletion, "Task should not be completed successfully.");
172
case
TaskStatus
.Canceled:
183
case
TaskStatus
.Faulted:
system\threading\Tasks\Future.cs (3)
1661
public TResult Result { get { return m_task.Status ==
TaskStatus
.RanToCompletion ? m_task.Result : default(TResult); } }
1666
public bool CancellationPending { get { return (m_task.Status ==
TaskStatus
.WaitingToRun) && m_task.CancellationToken.IsCancellationRequested; } }
1667
public
TaskStatus
Status { get { return m_task.Status; } }
system\threading\Tasks\FutureFactory.cs (8)
1559
/// which constrain for which <see cref="System.Threading.Tasks.
TaskStatus
">TaskStatus</see> states a continuation
1606
/// which constrain for which <see cref="System.Threading.Tasks.
TaskStatus
">TaskStatus</see> states a continuation
1705
/// which constrain for which <see cref="System.Threading.Tasks.
TaskStatus
">TaskStatus</see> states a continuation
1754
/// which constrain for which <see cref="System.Threading.Tasks.
TaskStatus
">TaskStatus</see> states a continuation
1959
/// which constrain for which <see cref="System.Threading.Tasks.
TaskStatus
">TaskStatus</see> states a continuation
2006
/// which constrain for which <see cref="System.Threading.Tasks.
TaskStatus
">TaskStatus</see> states a continuation
2105
/// which constrain for which <see cref="System.Threading.Tasks.
TaskStatus
">TaskStatus</see> states a continuation
2154
/// which constrain for which <see cref="System.Threading.Tasks.
TaskStatus
">TaskStatus</see> states a continuation
system\threading\Tasks\Task.cs (31)
1424
public
TaskStatus
Status
1428
TaskStatus
rval;
1435
if ((sf & TASK_STATE_FAULTED) != 0) rval =
TaskStatus
.Faulted;
1436
else if ((sf & TASK_STATE_CANCELED) != 0) rval =
TaskStatus
.Canceled;
1437
else if ((sf & TASK_STATE_RAN_TO_COMPLETION) != 0) rval =
TaskStatus
.RanToCompletion;
1438
else if ((sf & TASK_STATE_WAITING_ON_CHILDREN) != 0) rval =
TaskStatus
.WaitingForChildrenToComplete;
1439
else if ((sf & TASK_STATE_DELEGATE_INVOKED) != 0) rval =
TaskStatus
.Running;
1440
else if ((sf & TASK_STATE_STARTED) != 0) rval =
TaskStatus
.WaitingToRun;
1441
else if ((sf & TASK_STATE_WAITINGFORACTIVATION) != 0) rval =
TaskStatus
.WaitingForActivation;
1442
else rval =
TaskStatus
.Created;
1544
/// final states: <see cref="System.Threading.Tasks.
TaskStatus
.RanToCompletion">RanToCompletion</see>,
1545
/// <see cref="System.Threading.Tasks.
TaskStatus
.Faulted">Faulted</see>, or
1546
/// <see cref="System.Threading.Tasks.
TaskStatus
.Canceled">Canceled</see>.
1738
/// <see cref="System.Threading.Tasks.
TaskStatus
.Faulted">TaskStatus.Faulted</see>, and its
1821
/// the final states: <see cref="System.Threading.Tasks.
TaskStatus
.RanToCompletion">RanToCompletion</see>,
1822
/// <see cref="System.Threading.Tasks.
TaskStatus
.Faulted">Faulted</see>, or
1823
/// <see cref="System.Threading.Tasks.
TaskStatus
.Canceled">Canceled</see>.
1827
/// one of the final states: <see cref="System.Threading.Tasks.
TaskStatus
.RanToCompletion">RanToCompletion</see>,
1828
/// <see cref="System.Threading.Tasks.
TaskStatus
.Faulted">Faulted</see>, or
1829
/// <see cref="System.Threading.Tasks.
TaskStatus
.Canceled">Canceled</see>.
5496
Contract.Assert(firstCompleted.Status ==
TaskStatus
.RanToCompletion);
6400
Contract.Assert(task.Status ==
TaskStatus
.RanToCompletion);
6718
public bool CancellationPending { get { return (m_task.Status ==
TaskStatus
.WaitingToRun) && m_task.CancellationToken.IsCancellationRequested; } }
6719
public
TaskStatus
Status { get { return m_task.Status; } }
6917
/// cref="System.Threading.Tasks.
TaskStatus
">TaskStatus</see>.
7248
case
TaskStatus
.Canceled:
7249
case
TaskStatus
.Faulted:
7255
case
TaskStatus
.RanToCompletion:
7277
case
TaskStatus
.Canceled:
7281
case
TaskStatus
.Faulted:
7297
case
TaskStatus
.RanToCompletion:
system\threading\Tasks\TaskCompletionSource.cs (32)
145
/// <see cref="System.Threading.Tasks.
TaskStatus
.Faulted">Faulted</see>
154
/// <see cref="System.Threading.Tasks.
TaskStatus
.RanToCompletion">RanToCompletion</see>,
155
/// <see cref="System.Threading.Tasks.
TaskStatus
.Faulted">Faulted</see>, or
156
/// <see cref="System.Threading.Tasks.
TaskStatus
.Canceled">Canceled</see>.
172
/// <see cref="System.Threading.Tasks.
TaskStatus
.Faulted">Faulted</see>
181
/// <see cref="System.Threading.Tasks.
TaskStatus
.RanToCompletion">RanToCompletion</see>,
182
/// <see cref="System.Threading.Tasks.
TaskStatus
.Faulted">Faulted</see>, or
183
/// <see cref="System.Threading.Tasks.
TaskStatus
.Canceled">Canceled</see>.
228
/// <see cref="System.Threading.Tasks.
TaskStatus
.Faulted">Faulted</see>
237
/// <see cref="System.Threading.Tasks.
TaskStatus
.RanToCompletion">RanToCompletion</see>,
238
/// <see cref="System.Threading.Tasks.
TaskStatus
.Faulted">Faulted</see>, or
239
/// <see cref="System.Threading.Tasks.
TaskStatus
.Canceled">Canceled</see>.
255
/// <see cref="System.Threading.Tasks.
TaskStatus
.Faulted">Faulted</see>
265
/// <see cref="System.Threading.Tasks.
TaskStatus
.RanToCompletion">RanToCompletion</see>,
266
/// <see cref="System.Threading.Tasks.
TaskStatus
.Faulted">Faulted</see>, or
267
/// <see cref="System.Threading.Tasks.
TaskStatus
.Canceled">Canceled</see>.
282
/// <see cref="System.Threading.Tasks.
TaskStatus
.RanToCompletion">RanToCompletion</see>
291
/// <see cref="System.Threading.Tasks.
TaskStatus
.RanToCompletion">RanToCompletion</see>,
292
/// <see cref="System.Threading.Tasks.
TaskStatus
.Faulted">Faulted</see>, or
293
/// <see cref="System.Threading.Tasks.
TaskStatus
.Canceled">Canceled</see>.
306
/// <see cref="System.Threading.Tasks.
TaskStatus
.RanToCompletion">RanToCompletion</see>
314
/// <see cref="System.Threading.Tasks.
TaskStatus
.RanToCompletion">RanToCompletion</see>,
315
/// <see cref="System.Threading.Tasks.
TaskStatus
.Faulted">Faulted</see>, or
316
/// <see cref="System.Threading.Tasks.
TaskStatus
.Canceled">Canceled</see>.
328
/// <see cref="System.Threading.Tasks.
TaskStatus
.Canceled">Canceled</see>
335
/// <see cref="System.Threading.Tasks.
TaskStatus
.RanToCompletion">RanToCompletion</see>,
336
/// <see cref="System.Threading.Tasks.
TaskStatus
.Faulted">Faulted</see>, or
337
/// <see cref="System.Threading.Tasks.
TaskStatus
.Canceled">Canceled</see>.
356
/// <see cref="System.Threading.Tasks.
TaskStatus
.Canceled">Canceled</see>
362
/// <see cref="System.Threading.Tasks.
TaskStatus
.RanToCompletion">RanToCompletion</see>,
363
/// <see cref="System.Threading.Tasks.
TaskStatus
.Faulted">Faulted</see>, or
364
/// <see cref="System.Threading.Tasks.
TaskStatus
.Canceled">Canceled</see>.
system\threading\Tasks\TaskFactory.cs (16)
1866
/// which constrain for which <see cref="System.Threading.Tasks.
TaskStatus
">TaskStatus</see> states a continuation
1913
/// which constrain for which <see cref="System.Threading.Tasks.
TaskStatus
">TaskStatus</see> states a continuation
2013
/// which constrain for which <see cref="System.Threading.Tasks.
TaskStatus
">TaskStatus</see> states a continuation
2062
/// which constrain for which <see cref="System.Threading.Tasks.
TaskStatus
">TaskStatus</see> states a continuation
2170
/// which constrain for which <see cref="System.Threading.Tasks.
TaskStatus
">TaskStatus</see> states a continuation
2221
/// which constrain for which <see cref="System.Threading.Tasks.
TaskStatus
">TaskStatus</see> states a continuation
2333
/// which constrain for which <see cref="System.Threading.Tasks.
TaskStatus
">TaskStatus</see> states a continuation
2386
/// which constrain for which <see cref="System.Threading.Tasks.
TaskStatus
">TaskStatus</see> states a continuation
2609
/// which constrain for which <see cref="System.Threading.Tasks.
TaskStatus
">TaskStatus</see> states a continuation
2656
/// which constrain for which <see cref="System.Threading.Tasks.
TaskStatus
">TaskStatus</see> states a continuation
2764
/// which constrain for which <see cref="System.Threading.Tasks.
TaskStatus
">TaskStatus</see> states a continuation
2815
/// which constrain for which <see cref="System.Threading.Tasks.
TaskStatus
">TaskStatus</see> states a continuation
2924
/// which constrain for which <see cref="System.Threading.Tasks.
TaskStatus
">TaskStatus</see> states a continuation
2977
/// which constrain for which <see cref="System.Threading.Tasks.
TaskStatus
">TaskStatus</see> states a continuation
3077
/// which constrain for which <see cref="System.Threading.Tasks.
TaskStatus
">TaskStatus</see> states a continuation
3126
/// which constrain for which <see cref="System.Threading.Tasks.
TaskStatus
">TaskStatus</see> states a continuation
System.Data (9)
fx\src\data\System\Data\ProviderBase\DbConnectionClosed.cs (1)
125
Debug.Assert(retry.Task.Status ==
TaskStatus
.RanToCompletion, "retry task must be completed successfully");
fx\src\data\System\Data\SqlClient\SqlBulkCopy.cs (1)
1005
if (t.Status ==
TaskStatus
.RanToCompletion) {
fx\src\data\System\Data\SqlClient\SqlSequentialStream.cs (2)
221
if ((t.Status ==
TaskStatus
.RanToCompletion) && (CanRead))
225
else if (t.Status ==
TaskStatus
.Faulted)
fx\src\data\System\Data\SqlClient\SqlSequentialTextReader.cs (2)
189
if ((t.Status ==
TaskStatus
.RanToCompletion) && (!IsClosed))
210
else if (t.Status ==
TaskStatus
.Faulted)
fx\src\data\System\Data\SqlClient\TdsParser.cs (3)
10494
case
TaskStatus
.RanToCompletion:
10496
case
TaskStatus
.Faulted:
10498
case
TaskStatus
.Canceled:
System.ServiceModel.Internals (3)
System\Runtime\TaskExtensions.cs (3)
20
if (task.Status ==
TaskStatus
.Created)
62
if (task.Status ==
TaskStatus
.Created)
193
return (task.Status ==
TaskStatus
.RanToCompletion) ?