##// END OF EJS Templates
working on promises
working on promises

File last commit:

r244:eee3e49dd1ff v3
r245:b904e0a3ba72 v3
Show More
IPromise.cs
41 lines | 1.5 KiB | text/x-csharp | CSharpLexer
cin
inital progress handling
r7 using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
cin
Refactoring
r66 namespace Implab {
cin
working on promises
r243 public interface IPromise {
cin
refactoring
r26
cin
Refactoring
r66 /// <summary>
/// Тип результата, получаемого через данное обещание.
/// </summary>
cin
Working on promises
r242 Type ResultType { get; }
cin
refactoring
r25
cin
minor fixes
r74 /// <summary>
cin
fixed TransientPromiseException handling
r99 /// Обещание является выполненым, либо успешно, либо с ошибкой, либо отменено.
cin
minor fixes
r74 /// </summary>
cin
working on promises
r244 bool IsResolved { get; }
cin
Refactoring
r66
cin
Working on promises
r242 bool IsRejected { get; }
cin
working on promises
r244 bool IsFulfilled { get; }
cin
refactoring
r25
cin
Promises rewritten, added improved version of AsyncQueue
r119 /// <summary>
cin
added ICancellable.Cancel(Exception) to allow specify the reason of cancellation
r138 /// Исключение возникшее в результате выполнения обещания, либо причина отмены.
/// </summary>
cin
Working on promises
r242 Exception RejectReason { get; }
cin
added ICancellable.Cancel(Exception) to allow specify the reason of cancellation
r138
/// <summary>
cin
Promises rewritten, added improved version of AsyncQueue
r119 /// Adds specified listeners to the current promise.
cin
major refactoring, added tasks support
r75 /// </summary>
cin
Promises rewritten, added improved version of AsyncQueue
r119 /// <param name="success">The handler called on the successful promise completion.</param>
/// <param name="error">The handler is called if an error while completing the promise occurred.</param>
/// <returns>The current promise.</returns>
cin
working on promises
r244 void Then(IResolvable next);
cin
Promises rewritten, added improved version of AsyncQueue
r119
/// <summary>
cin
minor fixes
r74 /// Преобразует результат обещания к заданному типу и возвращает новое обещание.
/// </summary>
cin
Refactoring
r66 IPromise<T> Cast<T>();
cin
inital progress handling
r7 }
}