You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We've several flags like running and _killed that must be synchronized with the real state of the process we are supervising. We potentially lose control with every await call, so need to be careful where we set the flags. Also need to realize that the flags could be set to something else when we come back from the await call.
I suspect we should count lines between await calls as something similar to critical sections and set our flags there. And not assume any flags set before an await are the same after.
The text was updated successfully, but these errors were encountered:
We've several flags like running and _killed that must be synchronized with the real state of the process we are supervising. We potentially lose control with every
await
call, so need to be careful where we set the flags. Also need to realize that the flags could be set to something else when we come back from the await call.I suspect we should count lines between await calls as something similar to critical sections and set our flags there. And not assume any flags set before an await are the same after.
The text was updated successfully, but these errors were encountered: