Mercurial > pub > ImplabNet
diff Implab/RejectedPromise`1.cs @ 249:d82909310094 v3
Implab.Test moved to xunit
Complete set of PromiseHelpers (Then, Catch, Finally)
Removed obsolete types ICancellable, ICancellationToken
author | cin |
---|---|
date | Wed, 31 Jan 2018 11:28:38 +0300 |
parents | 5cb4826c2c2a |
children |
line wrap: on
line diff
--- a/Implab/RejectedPromise`1.cs Tue Jan 30 01:37:17 2018 +0300 +++ b/Implab/RejectedPromise`1.cs Wed Jan 31 11:28:38 2018 +0300 @@ -24,21 +24,19 @@ } void IPromise.Join() { - m_reason.ThrowInvocationException(); + throw m_reason.Wrap(); } void IPromise.Join(int timeout) { - m_reason.ThrowInvocationException(); + throw m_reason.Wrap(); } public T Join() { - m_reason.ThrowInvocationException(); - throw new Exception(); // unreachable code + throw m_reason.Wrap(); } public T Join(int timeout) { - m_reason.ThrowInvocationException(); - throw new Exception(); // unreachable code + throw m_reason.Wrap(); } public void Then(IResolvable next) {