Mercurial > pub > ImplabNet
annotate Implab/Components/ExecutionState.cs @ 209:a867536c68fc v2
Bound promise to CancellationToken
Added new states to ExecutionSate enum.
Added Safe.Guard() method to handle cleanup of the result of the promise
| author | cin |
|---|---|
| date | Wed, 16 Nov 2016 03:06:08 +0300 |
| parents | d6a8cba73acc |
| children | 9f63dade3a40 |
| rev | line source |
|---|---|
| 152 | 1 namespace Implab.Components { |
| 154 | 2 |
| 152 | 3 public enum ExecutionState { |
| 184 | 4 Undefined = 0, |
| 5 | |
| 6 Created, | |
| 7 | |
| 8 Initializing, | |
| 9 | |
|
156
97fbbf816844
Promises: SignalXXX methods merged into SignalHandler method.
cin
parents:
154
diff
changeset
|
10 Ready, |
| 184 | 11 |
| 152 | 12 Starting, |
| 184 | 13 |
| 152 | 14 Running, |
| 184 | 15 |
| 209 | 16 Suspending, |
| 17 | |
| 18 Suspended, | |
| 19 | |
| 20 Resuming, | |
| 21 | |
| 152 | 22 Stopping, |
| 184 | 23 |
| 24 Failed, | |
| 25 | |
| 152 | 26 Disposed, |
| 184 | 27 |
| 28 Last = Disposed | |
| 152 | 29 } |
| 30 } |
