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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
152
240aa6994018 component model refactoring
cin
parents:
diff changeset
1 namespace Implab.Components {
154
cin
parents: 152
diff changeset
2
152
240aa6994018 component model refactoring
cin
parents:
diff changeset
3 public enum ExecutionState {
184
d6a8cba73acc working on runnable component
cin
parents: 156
diff changeset
4 Undefined = 0,
d6a8cba73acc working on runnable component
cin
parents: 156
diff changeset
5
d6a8cba73acc working on runnable component
cin
parents: 156
diff changeset
6 Created,
d6a8cba73acc working on runnable component
cin
parents: 156
diff changeset
7
d6a8cba73acc working on runnable component
cin
parents: 156
diff changeset
8 Initializing,
d6a8cba73acc working on runnable component
cin
parents: 156
diff changeset
9
156
97fbbf816844 Promises: SignalXXX methods merged into SignalHandler method.
cin
parents: 154
diff changeset
10 Ready,
184
d6a8cba73acc working on runnable component
cin
parents: 156
diff changeset
11
152
240aa6994018 component model refactoring
cin
parents:
diff changeset
12 Starting,
184
d6a8cba73acc working on runnable component
cin
parents: 156
diff changeset
13
152
240aa6994018 component model refactoring
cin
parents:
diff changeset
14 Running,
184
d6a8cba73acc working on runnable component
cin
parents: 156
diff changeset
15
209
a867536c68fc Bound promise to CancellationToken
cin
parents: 184
diff changeset
16 Suspending,
a867536c68fc Bound promise to CancellationToken
cin
parents: 184
diff changeset
17
a867536c68fc Bound promise to CancellationToken
cin
parents: 184
diff changeset
18 Suspended,
a867536c68fc Bound promise to CancellationToken
cin
parents: 184
diff changeset
19
a867536c68fc Bound promise to CancellationToken
cin
parents: 184
diff changeset
20 Resuming,
a867536c68fc Bound promise to CancellationToken
cin
parents: 184
diff changeset
21
152
240aa6994018 component model refactoring
cin
parents:
diff changeset
22 Stopping,
184
d6a8cba73acc working on runnable component
cin
parents: 156
diff changeset
23
d6a8cba73acc working on runnable component
cin
parents: 156
diff changeset
24 Failed,
d6a8cba73acc working on runnable component
cin
parents: 156
diff changeset
25
152
240aa6994018 component model refactoring
cin
parents:
diff changeset
26 Disposed,
184
d6a8cba73acc working on runnable component
cin
parents: 156
diff changeset
27
d6a8cba73acc working on runnable component
cin
parents: 156
diff changeset
28 Last = Disposed
152
240aa6994018 component model refactoring
cin
parents:
diff changeset
29 }
240aa6994018 component model refactoring
cin
parents:
diff changeset
30 }