Mercurial > pub > ImplabNet
comparison Implab/RejectedPromise.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 |
comparison
equal
deleted
inserted
replaced
248:5cb4826c2c2a | 249:d82909310094 |
---|---|
22 public IPromise<T> Cast<T>() { | 22 public IPromise<T> Cast<T>() { |
23 throw new InvalidCastException(); | 23 throw new InvalidCastException(); |
24 } | 24 } |
25 | 25 |
26 public void Join() { | 26 public void Join() { |
27 m_reason.ThrowInvocationException(); | 27 throw m_reason.Wrap(); |
28 } | 28 } |
29 | 29 |
30 public void Join(int timeout) { | 30 public void Join(int timeout) { |
31 m_reason.ThrowInvocationException(); | 31 throw m_reason.Wrap(); |
32 } | 32 } |
33 | 33 |
34 public void Then(IResolvable next) { | 34 public void Then(IResolvable next) { |
35 next.Reject(m_reason); | 35 next.Reject(m_reason); |
36 } | 36 } |