-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ac 4282 make nested flow suspendable #43
Ac 4282 make nested flow suspendable #43
Conversation
FBFlowInstance >> pushExecutor: anExecutor [ | ||
FBFlowInstance >> pushExecutor: anExecutor [ | ||
|
||
executors add: anExecutor. | ||
executor := anExecutor | ||
flowInstance: self; | ||
suspendedExecutor: executor; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why do we still need the suspendedExecutor. Isn't the list of executors not a replacment for that?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There. is still one executor stepping at a time. When one executor go over all his steps, we still need a mechanism to jump back to the parent executor. This is done by restoring the #suspendedExecutor as current executor of the flow instance
@@ -8,5 +8,5 @@ Class { | |||
FBWaitForConditionBehavior >> execute [ | |||
(self node evaluateConditionWith: activation argument) | |||
ifTrue: [ activation followAll: self node outgoing ] | |||
ifFalse: [ activation waitForNode: self ] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't understand that change ;)
No description provided.