public void TrySetResult(TResult result) { TaskAsyncHelper.Dispatch(() => _tcs.TrySetResult(result)); }
public void TrySetException(Exception exception) { TaskAsyncHelper.Dispatch(() => _tcs.TrySetException(exception)); }
public void TrySetException(IEnumerable <Exception> exceptions) { TaskAsyncHelper.Dispatch(() => _tcs.TrySetException(exceptions)); }
public void TrySetCanceled() { TaskAsyncHelper.Dispatch(() => _tcs.TrySetCanceled()); }
public void TrySetResult(TResult result) { TaskAsyncHelper.Dispatch(() => _taskCompletionSource.TrySetResult(result)); }
public void TrySetException(IEnumerable <Exception> exceptions) { TaskAsyncHelper.Dispatch(() => _taskCompletionSource.TrySetException(exceptions)); }
public void TrySetException(Exception exception) { TaskAsyncHelper.Dispatch(() => _taskCompletionSource.TrySetException(exception)); }
public void TrySetCanceled() { TaskAsyncHelper.Dispatch(() => _taskCompletionSource.TrySetCanceled()); }