Skip to content
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

Comand completion wait for action completion #2782

Open
csmith608 opened this issue Jun 17, 2024 · 0 comments
Open

Comand completion wait for action completion #2782

csmith608 opened this issue Jun 17, 2024 · 0 comments

Comments

@csmith608
Copy link
Collaborator

F´ Version x.x.x
Affected Component Command Dispatcher/all components with commands

Feature Description

A commonly desired design pattern is to have commands wait for an action to complete before returning the command completion. For example, rather than sending a movement command and immediately returning, having the command wait for the movement to finish before completing. This would allow a sequence to call many in a row without guessing at the time that the motion takes to complete.

(Really, it would be great if the sequence or commander could choose when it completes, either immediately or upon action completion)

Rationale

This is a common design pattern and is currently difficult and time consuming to do in f prime. It is fairly easy to mess up and to have a command never return without careful state tracking. I'm not sure exactly what needs to happen, but I feel like this could be made easier and/or documented as a design pattern.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant