Skip to content

Move detail::bind_handler into asio namespace #1609

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

Open
justend29 opened this issue Mar 19, 2025 · 0 comments
Open

Move detail::bind_handler into asio namespace #1609

justend29 opened this issue Mar 19, 2025 · 0 comments

Comments

@justend29
Copy link
Contributor

justend29 commented Mar 19, 2025

bind_handler binds the given arguments to the provided handler while preserving the handler's associations through partial specializations of associator.

When creating asynchronous operations, the above function is cleaner and is more space efficient than chaining calls to `bind_(executor | allocator | immediate_executor | cancellation_slot ), as numerous copies of the associations aren't stored in the resulting object. This is what asio does for internal async operations.

bind_handler should be moved into the public asio namespace such that it's available on the reference page and users become aware of it.

@justend29 justend29 changed the title Move detail::bind_handler into public namespace Move detail::bind_handler into asio namespace Mar 19, 2025
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

No branches or pull requests

1 participant