annotate Implab/PromiseEventType.cs @ 203:4d9830a9bbb8
v2
Added 'Fail' method to RunnableComponent which allows component to move from
Running to Failed state.
Added PollingComponent a timer based runnable component
More tests
Added FailPromise a thin class to wrap exceptions
Fixed error handling in SuccessPromise classes.
author |
cin |
date |
Tue, 18 Oct 2016 17:49:54 +0300 |
parents |
3fbc6eb93eb1 |
children |
|
rev |
line source |
104
|
1 using System;
|
|
2
|
|
3 namespace Implab {
|
|
4 [Flags]
|
|
5 public enum PromiseEventType {
|
|
6 Success = 1,
|
|
7 Error = 2,
|
|
8 Cancelled = 4,
|
|
9 /// <summary>
|
|
10 /// Завершено успешно, либо возникла ошибка,
|
|
11 /// </summary>
|
|
12 All = 7,
|
|
13 /// <summary>
|
|
14 /// Заврешено успешно, либо возникла ошибка.
|
|
15 /// </summary>
|
114
|
16 Complete = 3,
|
|
17
|
|
18 ErrorOrCancel = 6
|
104
|
19 }
|
|
20 }
|
|
21
|