19 references to TrySetResult
mscorlib (19)
system\io\filestream.cs (2)
2777
readTask.
TrySetResult
(asyncResult.NumBytesRead);
2813
writeTask.
TrySetResult
(default(VoidTaskResult));
system\runtime\compilerservices\AsyncMethodBuilder.cs (1)
608
if (!task.
TrySetResult
(result))
system\threading\SemaphoreSlim.cs (1)
95
bool setSuccessfully =
TrySetResult
(true);
system\threading\Tasks\Future.cs (1)
509
bool success =
TrySetResult
(result);
system\threading\Tasks\FutureFactory.cs (6)
584
promise.
TrySetResult
(result);
877
promise.
TrySetResult
(default(TResult));
1014
promise.
TrySetResult
(default(TResult));
1158
promise.
TrySetResult
(default(TResult));
1310
promise.
TrySetResult
(default(TResult));
1440
successfullySet =
TrySetResult
(result);
system\threading\Tasks\Task.cs (4)
5942
setSucceeded =
TrySetResult
(default(VoidTaskResult));
6181
TrySetResult
(default(VoidTaskResult));
6431
TrySetResult
(results);
7308
result =
TrySetResult
(taskTResult != null ? taskTResult.Result : default(TResult));
system\threading\Tasks\TaskCompletionSource.cs (1)
298
bool rval = m_task.
TrySetResult
(result);
system\threading\Tasks\TaskFactory.cs (3)
1670
TrySetResult
(_tasks);
1748
TrySetResult
(_tasks);
2449
bool success =
TrySetResult
(completingTask);