IPromiseT.cs
40 lines
| 1.3 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
|
r76 | void Last(ResultHandler<T> success, ErrorHandler error, Action cancel); | ||
void Last(ResultHandler<T> success, ErrorHandler error); | ||||
void Last(ResultHandler<T> success); | ||||
cin
|
r75 | IPromise<T> Then(ResultHandler<T> success, ErrorHandler<T> error, Action cancel); | ||
cin
|
r66 | IPromise<T> Then(ResultHandler<T> success, ErrorHandler<T> error); | ||
cin
|
r75 | |||
cin
|
r66 | IPromise<T> Then(ResultHandler<T> success); | ||
cin
|
r75 | |||
cin
|
r76 | IPromise<T2> Then<T2>(ResultMapper<T, T2> mapper, ErrorHandler<T2> error, Action cancel); | ||
IPromise<T2> Then<T2>(ResultMapper<T, T2> mapper, ErrorHandler<T2> error); | ||||
IPromise<T2> Then<T2>(ResultMapper<T, T2> mapper); | ||||
IPromise<T2> Chain<T2>(ResultMapper<T, IPromise<T2>> chained, ErrorHandler<IPromise<T2>> error, Action cancel); | ||||
IPromise<T2> Chain<T2>(ResultMapper<T, IPromise<T2>> chained, ErrorHandler<IPromise<T2>> error); | ||||
IPromise<T2> Chain<T2>(ResultMapper<T, IPromise<T2>> chained); | ||||
cin
|
r75 | |||
cin
|
r66 | IPromise<T> Error(ErrorHandler<T> error); | ||
new IPromise<T> Cancelled(Action handler); | ||||
cin
|
r75 | |||
cin
|
r76 | new IPromise<T> Anyway(Action handler); | ||
cin
|
r66 | } | ||
} | ||||