IPromiseT.cs
30 lines
| 1010 B
| text/x-csharp
|
CSharpLexer
/ Implab / IPromiseT.cs
cin
|
r66 | using System; | ||
cin
|
r75 | namespace Implab { | ||
cin
|
r119 | public interface IPromise<out T> : IPromise { | ||
cin
|
r66 | |||
new T Join(); | ||||
cin
|
r75 | |||
cin
|
r66 | new T Join(int timeout); | ||
cin
|
r138 | IPromise<T> On(Action<T> success, Action<Exception> error, Action<Exception> cancel); | ||
cin
|
r76 | |||
cin
|
r119 | IPromise<T> On(Action<T> success, Action<Exception> error); | ||
cin
|
r76 | |||
cin
|
r119 | IPromise<T> On(Action<T> success); | ||
cin
|
r76 | |||
cin
|
r119 | new IPromise<T> On(Action handler, PromiseEventType events); | ||
cin
|
r138 | IPromise<T2> Then<T2>(Func<T, T2> mapper, Func<Exception, T2> error, Func<Exception, T2> cancel); | ||
cin
|
r76 | |||
cin
|
r138 | 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
|
r138 | IPromise<T2> Chain<T2>(Func<T, IPromise<T2>> chained, Func<Exception, IPromise<T2>> error, Func<Exception, IPromise<T2>> cancel); | ||
cin
|
r76 | |||
cin
|
r138 | 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
|
r66 | } | ||
} | ||||