AsyncDolls.TaskCompletionSource.TrySetException C# (CSharp) Method

TrySetException() public method

Attempts to transition the underlying Task into the TaskStatus.Faulted state.
public TrySetException ( Exception exception ) : bool
exception System.Exception The exception to bind to this . May not be null.
return bool
        public bool TrySetException(Exception exception)
        {
            return _tcs.TrySetException(exception);
        }

Same methods

TaskCompletionSource::TrySetException ( IEnumerable exceptions ) : bool