##// END OF EJS Templates
sync
sync

File last commit:

r205:8200ab154c8a v2
r222:98eeb63cedb2 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);
}
}
}