Пример #1
0
 public void TrySetResult(TResult result)
 {
     TaskAsyncHelper.Dispatch(() => _tcs.TrySetResult(result));
 }
Пример #2
0
 public void TrySetException(Exception exception)
 {
     TaskAsyncHelper.Dispatch(() => _tcs.TrySetException(exception));
 }
Пример #3
0
 public void TrySetException(IEnumerable <Exception> exceptions)
 {
     TaskAsyncHelper.Dispatch(() => _tcs.TrySetException(exceptions));
 }
Пример #4
0
 public void TrySetCanceled()
 {
     TaskAsyncHelper.Dispatch(() => _tcs.TrySetCanceled());
 }
Пример #5
0
 public void TrySetResult(TResult result)
 {
     TaskAsyncHelper.Dispatch(() => _taskCompletionSource.TrySetResult(result));
 }
Пример #6
0
 public void TrySetException(IEnumerable <Exception> exceptions)
 {
     TaskAsyncHelper.Dispatch(() => _taskCompletionSource.TrySetException(exceptions));
 }
Пример #7
0
 public void TrySetException(Exception exception)
 {
     TaskAsyncHelper.Dispatch(() => _taskCompletionSource.TrySetException(exception));
 }
Пример #8
0
 public void TrySetCanceled()
 {
     TaskAsyncHelper.Dispatch(() => _taskCompletionSource.TrySetCanceled());
 }