34 references to RanToCompletion
mscorlib (28)
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 (1)
624
Contract.Requires(completedTask.Status == TaskStatus.
RanToCompletion
, "Expected a successfully completed task");
system\runtime\compilerservices\TaskAwaiter.cs (1)
163
Contract.Requires(task.Status != TaskStatus.
RanToCompletion
, "Task should not be completed successfully.");
system\threading\Tasks\Future.cs (1)
1661
public TResult Result { get { return m_task.Status == TaskStatus.
RanToCompletion
? m_task.Result : default(TResult); } }
system\threading\Tasks\Task.cs (8)
1437
else if ((sf & TASK_STATE_RAN_TO_COMPLETION) != 0) rval = TaskStatus.
RanToCompletion
;
1544
/// final states: <see cref="System.Threading.Tasks.TaskStatus.
RanToCompletion
">RanToCompletion</see>,
1821
/// the final states: <see cref="System.Threading.Tasks.TaskStatus.
RanToCompletion
">RanToCompletion</see>,
1827
/// one of the final states: <see cref="System.Threading.Tasks.TaskStatus.
RanToCompletion
">RanToCompletion</see>,
5496
Contract.Assert(firstCompleted.Status == TaskStatus.
RanToCompletion
);
6400
Contract.Assert(task.Status == TaskStatus.
RanToCompletion
);
7255
case TaskStatus.
RanToCompletion
:
7297
case TaskStatus.
RanToCompletion
:
system\threading\Tasks\TaskCompletionSource.cs (10)
154
/// <see cref="System.Threading.Tasks.TaskStatus.
RanToCompletion
">RanToCompletion</see>,
181
/// <see cref="System.Threading.Tasks.TaskStatus.
RanToCompletion
">RanToCompletion</see>,
237
/// <see cref="System.Threading.Tasks.TaskStatus.
RanToCompletion
">RanToCompletion</see>,
265
/// <see cref="System.Threading.Tasks.TaskStatus.
RanToCompletion
">RanToCompletion</see>,
282
/// <see cref="System.Threading.Tasks.TaskStatus.
RanToCompletion
">RanToCompletion</see>
291
/// <see cref="System.Threading.Tasks.TaskStatus.
RanToCompletion
">RanToCompletion</see>,
306
/// <see cref="System.Threading.Tasks.TaskStatus.
RanToCompletion
">RanToCompletion</see>
314
/// <see cref="System.Threading.Tasks.TaskStatus.
RanToCompletion
">RanToCompletion</see>,
335
/// <see cref="System.Threading.Tasks.TaskStatus.
RanToCompletion
">RanToCompletion</see>,
362
/// <see cref="System.Threading.Tasks.TaskStatus.
RanToCompletion
">RanToCompletion</see>,
System.Data (5)
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 (1)
221
if ((t.Status == TaskStatus.
RanToCompletion
) && (CanRead))
fx\src\data\System\Data\SqlClient\SqlSequentialTextReader.cs (1)
189
if ((t.Status == TaskStatus.
RanToCompletion
) && (!IsClosed))
fx\src\data\System\Data\SqlClient\TdsParser.cs (1)
10494
case TaskStatus.
RanToCompletion
:
System.ServiceModel.Internals (1)
System\Runtime\TaskExtensions.cs (1)
193
return (task.Status == TaskStatus.
RanToCompletion
) ?