Conversation
bajtos
left a comment
There was a problem hiding this comment.
This looks like a disruptive change to me. Did you check that the caller of setup can handle the case when setup never returns?
IIRC:
- now:
setupreturns immediately after starting Station Core process, the process runs in the background - your change:
setupwaits for the process to complete
If we decide this is the direction to go, then I think we should rename start to something like run or runOnce, considering that the function no longer starts the process in the background but instead waits until the process exits.
Yes, |
Are you saying we should find a different way to restart it? |
Thank you for checking! Based on what you wrote, I think it will be best to rename
I'd like to be careful and make sure we understand the ramifications of this change. It looks "easy" and innocent at first sight, but changes the behaviour in subtle ways that can easily introduce bugs - at least, that's what I remember from how we were iterating on |
I added
I agree, that migration was quite tricky! |
Closes #1548