IPromiseT.cs
29 lines
| 872 B
| text/x-csharp
|
CSharpLexer
/ Implab / IPromiseT.cs
cin
|
r66 | using System; | ||
using System.Collections.Generic; | ||||
using System.Linq; | ||||
using System.Text; | ||||
namespace Implab | ||||
{ | ||||
public interface IPromise<T>: IPromise | ||||
{ | ||||
new T Join(); | ||||
new T Join(int timeout); | ||||
IPromise<T> Then(ResultHandler<T> success, ErrorHandler<T> error); | ||||
IPromise<T> Then(ResultHandler<T> success); | ||||
IPromise<T> Error(ErrorHandler<T> error); | ||||
cin
|
r72 | IPromise<T2> Map<T2>(ResultMapper<T,T2> mapper, ErrorHandler<T> error); | ||
cin
|
r66 | IPromise<T2> Map<T2>(ResultMapper<T, T2> mapper); | ||
cin
|
r72 | IPromise<T2> Chain<T2>(ChainedOperation<T, T2> chained, ErrorHandler<T> error); | ||
cin
|
r66 | IPromise<T2> Chain<T2>(ChainedOperation<T, T2> chained); | ||
new IPromise<T> Cancelled(Action handler); | ||||
new IPromise<T> Finally(Action handler); | ||||
new IPromise<T> Anyway(Action handler); | ||||
} | ||||
} | ||||