##// END OF EJS Templates
JsonXmlReader performance tuning...
JsonXmlReader performance tuning JsonScanner now operates strings and doesn't parses number and literals. Added SerializationHelpers to common serialize/deserialize operations

File last commit:

r205:8200ab154c8a v2
r229:5f7a3e1d32b9 v2
Show More
Promise.cs
25 lines | 544 B | text/x-csharp | CSharpLexer
using System;
using Implab.Parallels;
namespace Implab {
public class Promise : AbstractPromise, IDeferred {
public static readonly IPromise Success;
static Promise() {
Success = new SuccessPromise();
}
public void Resolve() {
SetResult();
}
public void Reject(Exception error) {
SetError(error);
}
public static IPromise FromException(Exception exception) {
return new FailedPromise(exception);
}
}
}