##// END OF EJS Templates
missing files
missing files

File last commit:

r205:8200ab154c8a v2
r237:f2150c16b476 v2
Show More
Promise.cs
25 lines | 544 B | text/x-csharp | CSharpLexer
cin
Promises rewritten, added improved version of AsyncQueue
r119 using System;
cin
DRAFT: refactoring
r144 using Implab.Parallels;
cin
Promises rewritten, added improved version of AsyncQueue
r119
namespace Implab {
cin
DRAFT: refactoring
r144 public class Promise : AbstractPromise, IDeferred {
cin
Added ResetState to RunnableComponent to reset in case of failure...
r205 public static readonly IPromise Success;
cin
Promises rewritten, added improved version of AsyncQueue
r119
cin
DRAFT: refactoring
r144 static Promise() {
cin
Added ResetState to RunnableComponent to reset in case of failure...
r205 Success = new SuccessPromise();
cin
Promises rewritten, added improved version of AsyncQueue
r119 }
public void Resolve() {
cin
DRAFT: refactoring
r144 SetResult();
cin
Promises rewritten, added improved version of AsyncQueue
r119 }
public void Reject(Exception error) {
SetError(error);
cin
Added ResetState to RunnableComponent to reset in case of failure...
r205 }
public static IPromise FromException(Exception exception) {
return new FailedPromise(exception);
}
cin
Promises rewritten, added improved version of AsyncQueue
r119 }
}