##// END OF EJS Templates
README.md edited online with Bitbucket
README.md edited online with Bitbucket

File last commit:

r260:547a2fc0d93e v3.0.6 v3
r282:12b89f1cfe9f default
Show More
Promise.cs
22 lines | 434 B | text/x-csharp | CSharpLexer
using System;
using Implab.Parallels;
namespace Implab {
public class Promise : AbstractPromise, IDeferred {
public static readonly Promise SUCCESS;
static Promise() {
SUCCESS = new Promise();
SUCCESS.Resolve();
}
public void Resolve() {
SetResult();
}
public void Reject(Exception error) {
SetError(error);
}
}
}