15 references to TrySetException
mscorlib (15)
system\io\filestream.cs (3)
2745task.TrySetException(ex); 2781readTask.TrySetException(ex); 2817writeTask.TrySetException(ex);
system\runtime\compilerservices\AsyncMethodBuilder.cs (1)
664task.TrySetException(exception);
system\threading\Tasks\FutureFactory.cs (4)
567bool bWonSetException = promise.TrySetException(ex); 738catch (Exception e) { promise.TrySetException(e); } // catch and log any scheduler exceptions 747catch (Exception e) { promise.TrySetException(e); } // catch and log any scheduler exceptions 1458successfullySet = TrySetException(exc);
system\threading\Tasks\Task.cs (4)
5541bool succeeded = task.TrySetException(exception); 6166TrySetException(observedExceptions); 6416TrySetException(observedExceptions); 7293result = TrySetException(edis);
system\threading\Tasks\TaskCompletionSource.cs (3)
164bool rval = m_task.TrySetException(exception); 204bool rval = m_task.TrySetException(defensiveCopy); 220bool rval = m_task.TrySetException(exceptions);