Skip to content

[docs] add note about callback lifetime for {on, post}_set_parameter_callback#1981

Merged
ihasdapie merged 3 commits intorollingfrom
brianc/on_post_set_docs
Aug 29, 2022
Merged

[docs] add note about callback lifetime for {on, post}_set_parameter_callback#1981
ihasdapie merged 3 commits intorollingfrom
brianc/on_post_set_docs

Conversation

@ihasdapie
Copy link
Copy Markdown
Member

I've been burned by ignoring the return value and so has a few others -- adding a note about the lifetime of the registered callback being tied to the returned callback handle further up the documentation should help others avoid making the same mistake.

Signed-off-by: Brian Chen brian.chen@openrobotics.org

Signed-off-by: Brian Chen <brian.chen@openrobotics.org>
Copy link
Copy Markdown
Member

@jacobperron jacobperron left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the same message should also be added to add_pre_set_parameters_callback.

Signed-off-by: Brian Chen <brian.chen@openrobotics.org>
Copy link
Copy Markdown
Collaborator

@fujitatomoya fujitatomoya left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

Signed-off-by: Brian Chen <brian.chen@openrobotics.org>
@ihasdapie ihasdapie merged commit dab9f5e into rolling Aug 29, 2022
@ihasdapie ihasdapie deleted the brianc/on_post_set_docs branch August 29, 2022 19:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants