Skip to content
Discussion options

You must be logged in to vote

In callback-oriented programming, it's pretty normal to have a required callback to make it clear via the function signature that a particular function is callback-oriented, even if it's a callback some people might exclude. It's perfectly valid to just pass () => {} if you deliberately want to do nothing.

However, I might advise you to change your design of your Action! It sounds like you might be setting yourself up for some synchronization pain later. Personally, if I was setting up an Action that "tells the robot to go charge", I would have the Action's feedback indicate how far into the charging process it is, and the result type return that the charging completed successfully or uns…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ikwilnaarhuisman
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1127 on December 15, 2025 19:30.