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); } } }