IPromiseT.cs
40 lines
| 1.2 KiB
| text/x-csharp
|
CSharpLexer
/ Implab / IPromiseT.cs
cin
|
r66 | using System; | ||
cin
|
r75 | namespace Implab { | ||
cin
|
r76 | public interface IPromise<T> : IPromise { | ||
cin
|
r66 | |||
new T Join(); | ||||
cin
|
r75 | |||
cin
|
r66 | new T Join(int timeout); | ||
cin
|
r104 | void On(Action<T> success, Action<Exception> error, Action cancel); | ||
cin
|
r76 | |||
cin
|
r104 | void On(Action<T> success, Action<Exception> error); | ||
cin
|
r76 | |||
cin
|
r104 | void On(Action<T> success); | ||
cin
|
r76 | |||
cin
|
r101 | IPromise<T> Then(Action<T> success, Func<Exception,T> error, Action cancel); | ||
cin
|
r75 | |||
cin
|
r101 | IPromise<T> Then(Action<T> success, Func<Exception,T> error); | ||
cin
|
r75 | |||
cin
|
r101 | IPromise<T> Then(Action<T> success); | ||
cin
|
r75 | |||
cin
|
r101 | IPromise<T2> Then<T2>(Func<T, T2> mapper, Func<Exception,T2> error, Action cancel); | ||
cin
|
r76 | |||
cin
|
r101 | IPromise<T2> Then<T2>(Func<T, T2> mapper, Func<Exception,T2> error); | ||
cin
|
r76 | |||
cin
|
r101 | IPromise<T2> Then<T2>(Func<T, T2> mapper); | ||
cin
|
r76 | |||
cin
|
r101 | IPromise<T2> Chain<T2>(Func<T, IPromise<T2>> chained, Func<Exception,IPromise<T2>> error, Action cancel); | ||
cin
|
r76 | |||
cin
|
r101 | IPromise<T2> Chain<T2>(Func<T, IPromise<T2>> chained, Func<Exception,IPromise<T2>> error); | ||
cin
|
r76 | |||
cin
|
r101 | IPromise<T2> Chain<T2>(Func<T, IPromise<T2>> chained); | ||
cin
|
r75 | |||
cin
|
r101 | IPromise<T> Error(Func<Exception,T> error); | ||
cin
|
r66 | |||
new IPromise<T> Cancelled(Action handler); | ||||
cin
|
r75 | |||
cin
|
r76 | new IPromise<T> Anyway(Action handler); | ||
cin
|
r66 | } | ||
} | ||||