-
Notifications
You must be signed in to change notification settings - Fork 411
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
[API Rename] spin_until_future_complete to spin_until_complete #1712
Comments
I don't feel strongly about it. The rationale for removing the Maybe get feedback from @ivanpauno or @mabelzhang first before opening something. |
im good to go with this. less redundancy makes sense to me. |
OK, I'll wait for the feedback from William's other suggestions before getting into it. I've done a quick overview of the main repos and see C++ instances of
For python its
So overall, it actually seems like it may be pretty trivial to make that conversion. I assume you'd like me to do Python at the same time? |
While I don't care hugely what the name is, I honestly don't think the churn here is worth it. In order to get this in, we are going to have to:
It just doesn't seem to be worth it to me. Maybe it will be worth it in the future if we add But I'm not a maintainer here, this is just my 2 cents. |
I agree its a bit of an undertaking. Though with the deprecation warning, I think it would be fixed by maintainers of downstream packages pretty quickly and without much hassle if its just a pure rename. In But this is why I asked before just doing it -- it is a bit of effort that I'm willing to deal with, but only if it ultimately would gain popular support to be merged. By in large though, search and replace will fix most of these issues (and a new depreciation warning on existing ones). |
I understand where @clalancette is coming from, but still I think it's fine to change, especially if someone is pushing for it (like you @SteveMacenski). So unless @ivanpauno doesn't care for it, I think it's ok to do. I do think you should do |
I'd be happy to do rclpy at the same time. Lets wait on @ivanpauno's response. I'd like general consensus before I started this |
Sorry for the delay in replying.
I would rather do the renaming when that happens, though I don't mind strongly. |
Hi,
I was hoping to get some feedback on the idea of changing
spin_until_future_complete
tospin_until_complete
. When writing application code with actions / services, I run into extending lines often while spinning to see if the server was completed. This is it of itself isn't a big deal, but I wonder if we can't shorten it a bit. I'm not sure what the "future" part of the API provides. The input is a future, but we don't havepublish_message(msg)
we just havepublish(msg)
.So I propose changing
spin_until_future_complete(future)
tospin_until_complete(future)
which I think semantically makes more sense and also opens the opportunity in future redesigns to use other mechanics other thanfutures
to spin under the same API without adding a few differentspin_until_XYZ_complete()
. This certainly isn't an earth-shattering suggestion, but if you think this would be agreeable, I'd be happy to help implement.The text was updated successfully, but these errors were encountered: